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
Conditional probability tree diagram example | Probability | AP Statistics | Khan Academy
Accompany screens job applicants for illegal drug use at a certain stage in their hiring process. The specific test they use has a false positive rate of 2% and a false negative rate of 1%. Suppose that 5% of all their applicants are actually using illega…
How to quickly ruin the rest of your life
Here’s another quick tutorial on how to quickly ruin your life. Step one: Eliminate your goals. Don’t orient yourself towards a North star. Don’t develop a vision for what your life could be like. Doing this will make it impossible to progress in life, b…
Dangling modifiers | Syntax | Khan Academy
Hello Garans, hello Rosie, hi Paige. So in this video, we’re going to talk about something called a dangling modifier. So before we get into what a dangling modifier is, we can sort of talk about just what a modifier is. Rosie, do you want to tell us wha…
Elephant Cleverly Steals Sugar Cane off a Truck in Thailand | Secrets of the Elephants
Thailand Highway 3259 is a sugarcane transport road. Thousands of farmers use it to get their crops to the refinery. But this highway has a toll collector. Locals call him the Don. And this is his territory. He’s a master dealmaker, calculating risk vers…
Which credit card is better for you? | Consumer credit | Financial Literacy | Khan Academy
And now we are going to play the game: which credit card is better for you? The reason why I’m saying “for you” is because, in many cases, one credit card could be better than another person depending on how they plan on using it. So pause this video and …
Spacex Booster Catch: $3 BILLION BUSTED!!
Everyone is gushing over this now. I know what you’re thinking — there is no way, no way that you can possibly dunk on this. It’s engineering amazing! Well, yeah, it looks impressive. I wonder how much the U.S. taxpayer paid for this, and the answer is th…