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
Coordinating conjunctions | The parts of speech | Grammar | Khan Academy
Hello Garans. All right, today I want to start talking about conjunctions. Conjunctions are this part of speech that has a very particular function in English, and what it does is unite words, phrases, and clauses. Let me show you an example. So, if you …
Manipulating expressions using structure | Mathematics I | High School Math | Khan Academy
So we’re told that suppose a plus b is equal to zero. Which of these expressions equal a * b? And like always, pause the video and see if you can figure it out. These are actually pretty fun problems! All right, so let’s see if we can do a little bit of …
Continuity and change in American society, 1754-1800 | AP US History | Khan Academy
In 1819, American author Washington Irving published a short story about a man named Rip Van Winkle. In the story, Rip lived in a sleepy village in the Catskill Mountains of New York, where he spent his days hanging around the local tavern, the King Georg…
Hitching a ride with the Gabra tribe's camel train | Primal Survivor: Extreme African Safari
But just as I was giving up hope, on the horizon… Thank God. Honestly. Thank God. HAZEN: There they are. I got them. It’s the camel train. (camel bellows) (man shouting) HAZEN: Yes! HAZEN: So, this is the camel train, look at how… It’s amazing. Wow, I …
3 Arguments Why Marijuana Should Stay Illegal Reviewed
All around the world, marijuana is being decriminalized, or even made legal. But is this really a good idea? In the online debate, the harmful sides are often downplayed. So let’s look at the three most powerful arguments against legalizing marijuana. Ar…
The Wolf of Wall Street (Movie Commentary W/ @HamishHodder and Jason Hughes)
Maybe live right now and we’re on one second, two seconds, three. So, how we going, gents? Welcome in. Hey, Miss Jason, what’s cracking? Not a lot, going well? Yeah, good stuff here. Hey, we’ve got some COVID up here. Oh yeah? Yeah, that’s, you’re in Syd…