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
Why Apollo Astronauts Trained in Nuclear Bomb Craters
On July 20th, fifty years ago, Neil Armstrong and Buzz Lightyear first set foot on the moon. But before they went there, they came here. This is Sedan Crater, and it was excavated by a nuclear bomb in 1962. [bomb explodes] It’s part of the Nevada Test Sit…
Khan Academy Best Practices for Supporting English Language Learners
Hey everyone, this is Jeremy Schieffling at Khan Academy. I want to wish you a happy Friday after week number five. Can you believe it? Since this all started, I know like the way of doing things in the past feels like the distant past all of a sudden. Bu…
What’s the most effective way to offset the depreciation of your jet?
So what’s kind of the sweet spot in terms of how old the jet is where someone else is taking the depreciation and the big hit for you, but you’re not going to be stuck with something no one wants in 5 to 10 years? No, it’s a great question, Preo, because…
Using a confidence interval to test slope | More on regression | AP Statistics | Khan Academy
Hashem obtained a random sample of students and noticed a positive linear relationship between their ages and their backpack weights. A 95% confidence interval for the slope of the regression line was 0.39 plus or minus 0.23. Hashim wants to use this inte…
Safari Live - Day 166 | National Geographic
This program features live coverage of an African safari and may include animal kills and carcasses. Viewer discretion is advised. Good afternoon, good afternoon ladies and gentlemen, and a very warm welcome to you again here on Safari Live. We are on a …
How the Rich get Richer
So, we’ve all heard the saying: the rich get richer. Looking at the data, it’s easy to see why. The top 1% of U.S. wealth has increased its net worth by 650 percent since 1989, while the bottom 50% only saw its wealth grow a measly 170 percent. The middle…