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
Our Bank Went Bankrupt
So our bank went bankrupt last Friday, but it’s not just us. In fact, most tech startups in Silicon Valley and over 2,500 Venture Capital firms held their funds with the 16th largest bank in the United States. Of course, we’re talking about the Silicon Va…
Big Bend's New Bear Cubs | America's National Parks | National Geographic
NARRATOR: Nearly 6,000 feet up in the mountains, another mom has a huge challenge. A female black bear has spent the winter in a high mountain cave. She needs to teach her cubs to survive in the park. With little to no food or water for months, the stakes…
Chi-square statistic for hypothesis testing | AP Statistics | Khan Academy
Let’s say there’s some type of standardized exam where every question on the test has four choices: choice A, choice B, choice C, and choice D. The test makers assure folks that over many years, there’s an equal probability that the correct answer for any…
Your Subconscious Mind is Ridiculously Powerful
Paulo, one of the main hosts of the World Cup, was anything but festive. Entire parts of the city remained shut, as cars were stuck on stretches of tarmac as far as the eye could see. The effects soon extended well beyond the city, as the entire country o…
Unadopted amendments to the Bill of Rights | US government and civics | Khan Academy
Hi, this is Kim from Khan Academy. Did you know that what we call the First Amendment today was actually the Third Amendment in the original draft of the Bill of Rights? In fact, there were more than 200 proposed amendments, which were whittled down to ju…
Teaching Math with Khanmigo
Meet Conmigo, your aid-driven companion who’s revolutionizing teaching for a more engaging and efficient experience. Kigo has many exciting features that support teachers, and this video will showcase ways you can use Kigo to create course-specific mathem…