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
When Watersports Become Dangerous | Science of Stupid: Ridiculous Fails
Some things just don’t go together– oil and water, gas and matches, tequila and fireworks. So you can imagine my concern when I heard about a combination of kayaking and surfing. Then I saw this and thought perhaps I’m worrying about nothing. And then I …
Voyage Air Guitar on Good Morning America
There you go. Yeah, yeah, okay, and finally, this is for just finally. So check it out, so check it out. He’s got it at full size right now, but this is how it comes. This is a Voyager guitar; it’s foldable like this, but then it opens just like this. Ye…
How Eating Out Keeps You Poor!
I just love this place, don’t you? I know it’s kinda expensive, but everything’s so top notch! Hey folks. Know what you want? Yes! I’d like to eat the Down Payment on a House, with a side of flambeed Emergency Fund. Excellent choice. And for you, sir? …
Elon Musk On How To Be Most Useful
Do you think people that want to be useful today should get PhDs? Um, mostly not. So what is the best way to be useful? Yes, but mostly not. Um, how should someone figure out how they can be most useful? Whatever the thing is that you’re trying to create…
Expected payoff example: protection plan | Probability & combinatorics | Khan Academy
We’re told that an electronic store gives customers the option of purchasing a protection plan when customers buy a new television. That’s actually quite common. The customer pays $80 for the plan, and if their television is damaged or stops working, the …
Strong acid–strong base titrations | Acids and bases | AP Chemistry | Khan Academy
Hydrochloric acid is an example of a strong acid, and sodium hydroxide is an example of a strong base. Let’s say we are titrating an unknown concentration of hydrochloric acid with a known concentration of sodium hydroxide. Let’s say it’s 0.20 molar. Beca…