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
How To Be A Millionaire In 10 Years (Starting With $0)
What’s up, Graham? It’s guys here. So here’s the deal: it was recently found that real wages have barely budged in decades. More than half of Americans are living paycheck to paycheck, and the poorest 70% of U.S. households don’t even have a savings accou…
Food Snatchers | Life Below Zero
Well, another beautiful morning. I’m always fat in the morning times. It’s time to get a lot of things done, and dogs and things I got to do every morning. Those get woke up by these damn squirrels, and they’re out there stealing my dog food. I see a squi…
How to negotiate with billionaires.
I negotiate with billionaires every day in what I do. Everybody always asks me, “How do you negotiate with a billionaire, a big corporate executive, and things like that?” To tell you the truth, you negotiate with them just like you negotiate with anybod…
The water cycle | Weather and climate | Middle school Earth and space science | Khan Academy
Did you know that the water you drink is actually the same water that dinosaurs drank over 65 million years ago? It might be hard to believe, but your water is actually really, really old. In fact, water on Earth is much older than the dinosaurs. Scientis…
Compare costs of postsecondary education | Careers and education | Financial literacy | Khan Academy
So let’s talk a little bit about how to compare costs based on all of your college options. The biggest piece of cost is going to be your tuition, and then of course your living expenses: room and board, where you’re going to live, and what you’re going t…
Camera Trap Captures Surprise Treetop Proposal | National Geographic
So, I was down in Panama doing research in the canopy of the rainforests. I knew that my boyfriend, Dan, was coming to visit me in a couple of weeks, so I was actually really excited. [Music] I called him up and I told him that he would not only be able t…