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
Article IV of the Constitution | US government and civics | Khan Academy
Hey, this is Kim from Khan Academy, and today I’m learning about Article 4 of the U.S. Constitution. Article 4 lays out the nuts and bolts of how federalism—the system of shared governance between states and the federal government—works in practice. Artic…
Joel McHale in a Slot Canyon | Running Wild With Bear Grylls
[music playing] OK, this is going to be tight. BEAR GRYLLS (VOICEOVER): Comedian and actor Joel McHale and I are trying to navigate a deep slop canyon in the Arizona desert. Oh my god. BEAR GRYLLS (VOICEOVER): But it just became dangerously narrow. Oh…
Michael Burry's $1.6B Bet On A Stock Market Crash?
Michael Barry just revealed what mainstream media is calling a massive bet against the stock market, but in reality, there’s a bit more to it than that. Barry, who has been radio silenced and is deleting his Twitter account, earlier this year has just rel…
Jessica Livingston - What's Different about "Unicorns"
Hi everyone! I can’t see you, but I’m so excited to see you. Um, this is actually my first time back in the Bay Area in more than a year. Um, I’ve been living in England for the past year with my family, and I just could not miss this day. So here I am, b…
Will Mars Be a World Without Laws? | MARS
Law works because it’s effectively backed up by a state, and that kind of breaks down in space a little bit. The whole legality of who owns what is going to fill volumes. There are international treaties that relate to space. The UN Outer Space Treaty 196…
Responding To CRINGE Investment Advice | BEST and WORST
What’s up you guys? It’s Graham here. So, I would like to think of myself as being social media savvy. You know, I got a YouTube channel. I got an Instagram account that I post on every now and then. I even have a Facebook group that I browse every single…