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
Perimeter word problem (skating rink) | Math | 3rd grade | Khan Academy
Gus plans to install a handrail around a skating rink. The rink forms a 40 meter by 20 meter rectangle. How many meters of handrail does Gus need? So here’s what we know about this skating rink: it’s a 40 meter by 20 meter rectangle. So let’s draw the sk…
Natural selection and adaptation | Mechanisms of evolution | High school biology | Khan Academy
Hi everybody, Dr. Sammy here, your friendly neighborhood entomologist, and I was hoping that we could take a few minutes to talk about adaptation. What comes to mind when you think about adaptation? You might think of cryptic morphology that helps organi…
Complex numbers
This video is going to be a quick review of complex numbers. If you studied complex numbers in the past, this will knock off some of the rust, and it’ll help explain why we use complex numbers in electrical engineering. If complex numbers are new to you,…
How has the position of Speaker changed over time? | US Government and Civics | Khan Academy
How is the position of Speaker of the House changed over time? The position of Speaker of the House has changed a lot over time, and it has had powerful early advocates. Henry Clay, an early Speaker of the House who had three different terms as Speaker, …
Why is the Speaker second in succession? | US Government and Civics | Khan Academy
Why is the Speaker second in succession to the President after the Vice President? The idea of succession actually was a little muddied, and it didn’t— it wasn’t until the 25th Amendment that actually, uh, the relationship between the President and the Vi…
What Hermes Taught MeQT
Hi, Kevin O’Leary, investor at large. I’ve just come back from a shopping trip and learned a very important lesson. You know I love Hermès fantastic ties. What I hate about them is the price. So, I like to shop for volume, see if I can get a discount. I…