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
Virality and network effects drive organic growth.
The best consumer companies incorporate both virality and network effect, which are different concepts but very closely related, in order to grow their user base organically. Virality is the idea that one user using your product introduces it to other us…
Equilibrium nominal interest rates in the money market | AP Macroeconomics | Khan Academy
So we’ve spent a lot of time justifying why we have this downward sloping demand curve for money, but you’re probably asking, “Well, this is a market. What we need to think about an equilibrium point?” And to do that, we need to think about the supply of …
Compare decimals word problems
Al is comparing two recipes for homemade bread. The recipe for white bread calls for 4⁄10 of a kilogram of flour. The recipe for whole wheat bread calls for 0.385 kilograms of flour. Which bread takes less flour? So, the white bread calls for 4⁄10 of a …
Why Now is the Golden Age of Paleontology | Nat Geo Explores
(tribal drum music) - [Narrator] Dinosaurs are awesome. (dinosaur roaring) We all know it. When we figured out these guys were a thing, we wanted more, more fossils, more art, more, well, whatever this is. So we went out and found them. Fast forward to to…
Earmarks, pork barrel projects and logrolling | US government and civics | Khan Academy
What we’re going to do in this video is focus on the budget process in the U.S. Congress. Just as a reminder, that’s one of the major functions of the United States Congress: to pass a budget for the executive branch—to decide how much money the executive…
Remove the Dams to Save the Salmon? | Short Film Showcase
[Music] [Music] If you think about the way a river works in a landscape, it essentially functions as the circulatory system. It drains the waste products off of the land, and that sediment is the stuff that basically structures habitat in rivers. Then, on…