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
.38 Special vs Prince Ruperts Drop at 170,000 FPS - Smarter Every Day 169
Hey, it’s me, Destin. Welcome back to Smarter Every Day. In one of the previous episodes, we shot a .22 caliber bullet against various Prince Rupert’s Drops, and you saw it splatter against the glass. It was fascinating. Now, a lot of people had comments…
Stoichiometry: mole-to-mole and percent yield | Chemistry | Khan Academy
As a chemist, your goal is to produce some ammonia, and you decide to use this chemical reaction to do that. Ammonia is useful in making fertilizers, for example, to improve the crop yields. Anyways, suppose you react 4.43 moles of hydrogen with excess o…
For parents: Setting a daily learning schedule for middle school students
Hello all and welcome to Khan Academy for Parents 6th through 8th Grade Remote Learning Webinar. I’m Megan Patani, I lead U.S. Professional Learning here at Khan Academy, and I’m joined today by two of my wonderful colleagues, Roy Chan, who’s a member of …
Review of revenue and cost graphs for a monopoly | Microeconomics | Khan Academy
What I want to do in this video is review a little bit of what we’ve learned about monopolies and in the process get a better understanding for some of the graphical representations which we have talked about in the past. But I want to put it all togethe…
Acorn Thieves | America's National Parks
This Pine is the Central Bank and Trust of the acorn woodpecker, and every inch is studded with neatly arranged holes—the woodpecker’s safe deposit boxes. Finding the absolutely perfect little vault for every acorn can be quite the puzzle. Each hole has b…
3D Photographs Of Things We Have Lost
Just a few years after this photograph was taken, the quagga, a subspecies of zebra, was hunted to extinction. This is actually one of the final two photographs ever taken of the quagga; the other was taken at the exact same moment, just a few inches to t…