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
Pushing The Limits Of Extreme Breath-Holding
Inside the tank is Brandon Birchak, and he is going to attempt to hold his breath for this entire video. (dramatic music) Brandon is one of the world’s foremost experts in breath work, so please don’t try this at home. I’ll put his info in the description…
Debugging with stack traces | Intro to CS - Python | Khan Academy
Debugging is just a fancy term for fixing errors in programs. It’s the process of removing bugs, so we call it “debug” since it’s something we’ll be doing often. Let’s learn how to work together with our IDE to track down and fix bugs in our programs. He…
Startup Hiring Advice from Lever CEO Sarah Nahm with Holly Liu
Seren: Holly, welcome to the podcast! Holly: Thanks for having us! Seren: Yeah, pumped! So, Holly, you have a question to start it off? Holly: Yeah, I’m super curious. Did you ever see yourself becoming a founder, a founding CEO? Holly: Oh my gosh, I …
Let’s Travel to The Most Extreme Place in The Universe
The universe is pretty big and very strange. Hundreds of billions of galaxies with sextillions of stars and planets, and in the middle of it all there is Earth, with you and us. But as enormous as the universe seems looking up, it seems to get even large…
The Housing Market Just Went ABSURD
What’s up, guys? It’s Graham here! So, as I’m sure you’re all aware, the housing market is absolutely bonkers. It was just revealed that housing prices have hit yet another record all-time high, rising 17% year-over-year. Buyers are paying a million doll…
Albatrosses' Life-Long Bond Begins With Elaborate Courtship – Ep. 3 | Wildlife: Resurrection Island
You think that’s fighting? The biggest bird in the world would be quite straightforward. Turns out, no! Here he comes. [Music] That is the biggest bird on the planet. Each one of those wings is as wide as I am tall. The wandering albatross’s wingspan is o…