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
Starbucks Stock: Are Silly Incentives Burning Shareholders? (w/ @HamishHodder)
[Music] Hey guys, welcome back to the channel. We’re continuing on with the new money advent calendar for yet another episode and yet another collaboration. This time I’ve got someone that you guys would be very familiar with, and that is of course Hamis…
Creativity break: Why is creativity important in STEM jobs? | Algebra 1 | Khan Academy
I think my idea of how creativity works and STEM jobs has changed since I’ve gotten to college. Like, I used to think that all the mathematicians would be just locked away in some office and like typing on their computers or writing down equations by them…
Why Being Nice to Women Fails – Do THIS Instead Stoic Wisdom
Have you ever wondered why being nice to women doesn’t seem to get you anywhere? You do everything right—you’re respectful, you listen, you compliment her—yet she seems more drawn to the guy who barely tries. Why is that? Most men think being nice means b…
The Shadow | Why We’re More Evil Than We Think
It seems like in current society we are excessively concerned with our self-image. But, even though we might think we’ve figured ourselves out, is this really the case? Or are we just showing the world - and ourselves - a mere reflection of who we truly a…
The First Militaristic Drug Cartel | Narco Wars
My name is Arturo Fontes. I was an FBI agent for approximately 28 years. People laugh at me because I left sunny San Diego with beaches and everything, and a nice big house to be in a small town, in Laredo. They call it “the armpit” of Texas. [honking] It…
Bird Taking Off at 20,000 fps (213 milliseconds) - Smarter Every Day 197
Hey, it’s me, Destin. Sorry for the vertical video there. I was recording for the Instagram story. So I caught this bird with my hand, and I got to thinking about it. It’s kind of a shame to have a bird and let it go and not film it in slow motion. So, th…