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
Does Water Swirl the Other Way in the Southern Hemisphere?
Derek: A couple of years ago my friend Destin and I wanted to definitively answer the question: does water actually swirl the opposite direction down the drain in the other hemisphere? At the time, I was living in Sydney, Australia, and Destin was in Hunt…
Artist Lauren McCarthy Will Be Your Home's Brain
So today we have Lauren McCarthy. She is an artist based in LA. Could you give us a quick background? Sure. Um, I’m an artist based in LA. I’m an assistant professor here at UCLA Design Media Arts, but my art is basically thinking about what are the syst…
Do You Have a Free Will?
Are you free? Free to choose what you do and make decisions? Or are you an NPC, unable to decide anything for yourself? You feel that you have control over your life, or at least what you’ll have for breakfast. But this may be an illusion. Physics actual…
Trying to Catch a 1,000 MPH Baseball - Smarter Every Day 247
Hey, it’s me Destin. Welcome back to “Smarter Every Day.” This video is awesome because we’re finally going to shoot it at stuff. And if you don’t know what I’m talking about, in a previous episode of “Smarter Every Day,” we fulfilled an important dream o…
Simplifying radicals examples
Let’s get some practice rewriting and simplifying radical expressions. So in this first exercise, and these are all from KH Academy, it says simplify the expression by removing all factors that are perfect squares from inside the radicals and combine the …
The Most Natural Truffle on Earth l Chef Wonderful and Marco Tallarico
What have you got here? One kilo black truffles! You can manufacture diamonds today, but most people don’t want those; they want the natural diamond. It took millions of years to make in the Earth. This is only by the hand of God. What’s very interesting…