yego.me
💡 Stop wasting time. Read Youtube instead of watch. Download Chrome Extension

Objective-C iPhone Programming Lesson 1 | Part 2


less than 1m read
·Nov 3, 2024

Hey guys, this is Mids And1 with part two of Objective C lesson one.

And so, if we run this, it will semi do what we wish, then not completely. All right, so we can type Alex, click hi; that now says Alex.

The thing is, it doesn't say "Hello Alex." So to do this, we're going to do a bit more complicated code. Um, I'm not going to explain this to you right yet.

All right, so this is basically saying take the piece of text "Hello," append our text. All right? What you have to understand is this right here, this line of code represents a piece of text.

This line of code represents a piece of text. This line of code together represents a piece of text. When you do setText: you have to have something that represents a piece of text.

After a piece of text, just like a UI label or UI text field, have something called on it called setText:. Text itself can have something called on it called stringByAppendingString:, which adds more text onto it.

So, we're going to take the text "Hello " and add on to the end of it the text of our text field. Now, if we run this, Alex, hello Alex! Right?

I can type bill. Right. Um, so this is our first hello world application for the iPhone. You can experiment with some of the stuff I've taught you: do multiple labels, uh, stuff like that.

Um, expect to hear from me shortly on my next uh, tutorial. So, thanks for watching M kids in one. Subscribe and goodbye. Bye!

More Articles

View All
Gel electrophoresis | Biomolecules | MCAT | Khan Academy
Let’s say that you have some vials here, and you know that in the solution you have fragments of DNA in each of these. What you’re curious about is, well, what about the DNA fragments in this first vial, in vial number one? How long are those fragments? H…
The Ancient Orchestra | Podcast | Overheard at National Geographic
So the first thing I want to do here, Amy, is just play you something. Okay? Out of the blue. [Music] Okay, so that is not Chewbacca, right? No? Just okay, let’s clear that up right now. You like the oldies, right? Yeah, but not that old. All these people…
Humpback Whale Migration | Shark vs Whale
NARRATOR: The migrating humpbacks have only one objective now, the safe house of Mozambique. It’s a whale-birthing paradise far from the usual hunting grounds of great white sharks. Vulnerable baby whales can nurse, grow, and gain strength. The adults hav…
AI in Education: Opportunities + Pitfalls
All right, welcome everyone! This is Jeremy Schiefling with Khan Academy. I am so thrilled to welcome you back for round two of our AI and education webinar series this summer. I know that this summer time is your time, and so I apologize for intruding up…
How To Get Rich
world won’t get there by making a social media platform. You aren’t Mark Zuckerberg. The reason these men got to where they are today is because they took a path that no one else ventured down. They made really stupid decisions that led to better decision…
Steve Varsano shows us the art around his office
Hey Steve, I’ve noticed a load of art around the showroom. Can you tell me more about it? Yeah, sure! This is one of my most favorite industry photos: Frank Sinatra and Dean Martin back in about 1970. Really, back in the early days of Las Vegas and the f…