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
Modern Lives, Ancient Caves | Podcast | Overheard at National Geographic
[Music] They had wanted to move out of the caves into more permanent English-built structures. The caves were only a temporary place where the first settlers arrived in. It’s the year 1681. Followers of William Penn have arrived in the New World from Engl…
Funding Is an Outcome of Building a Good Business - Porter Braswell of Jopwell
Maybe the best place to start would be, let’s explain what job well is, and then we can kind of go back in time and get to where we are now. Cool, cool. So also thanks for coming in. Absolutely my pleasure, thank you for having me. Appreciate it. Yeah, s…
Ron Conway at Startup School 2013
Good morning! Good morning! Mic, mic works. Okay, well, thanks for coming, Ron. We’re delighted to have you here, and we’re going to jump right into things. Um, I wanted to talk about Twitter first because Jack Dorsey is coming here later, and they’re go…
Become Who You're Afraid To Be | The Philosophy of Carl Jung
Most people are afraid to fully be themselves. They’re afraid to embrace the parts of themselves that might be regarded as unacceptable because embracing these unacceptable parts makes them feel uncomfortable. So, to escape this uncomfortableness, they di…
How Many Countries Are There?
How many countries are there? Easy: just grab a map and start counting, yes? No. Not all maps are created equal – borders will differ depending on who you got the map from. So if individuals disagree, then surely a committee will save the day. Go to the U…
Credit Card LifeHack: How to travel anywhere for FREE with just a few minutes of work
What’s up you guys, it’s Graham here. So, one of the things I’ve been doing for fun on the side is racking up credit card points. Over the last few years, I basically have been able to fly to Canada to visit family entirely for free, just by opening up a …