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
The naturalization process | Citizenship | High school civics | Khan Academy
In this video, we’re going to discuss the naturalization process which non-citizens go through in order to gain their U.S. citizenship. Heads up that we won’t be talking about the eligibility requirements that non-citizens must meet or any of the challeng…
Elon Musk & The Midwit Meme – Dalton Caldwell and Michael Seibel
This is the the beauty of the midwife meme: the genius and the idiot come to the same conclusion. So what is the idiot approach? Like, that’s actually how you can divine the genius approach. You’re like, “What would an idiot do?” Everyone can reach for th…
Buffett & Munger Expose Investment Lies: Real Returns vs. Pure Fiction
Speaker: We don’t formally have discount rates. I mean, every time I start talking about all this stuff, Charlie reminds me that I’ve never prepared a spreadsheet, but I do. You know, in in effect, in my mind, I do. But uh we are going to want to get a si…
The Theme Park Duopoly That Can't Be Stopped
[Music] Theme parks, there’s nobody on earth that doesn’t like them. Take the family, ride some rides, buy some merch, eat some food, have some fun. But despite being a bit of a novelty experience you might have, you know, once or twice a decade, these th…
Tesla : The Ponzi Factor
When we think about the stock market, we think about money, the finance industry, businesses, and making money from investing in successful businesses. The belief is investing in successful businesses is what leads to investment profits, and there’s a dir…
Now Anyone Can Code: How AI Agents Can Build Your Whole App
1984 the Mac brought personal computing to the masses. 2024 we have personal software. You actually are going to be able to orchestrate this giant army of agents. I think of Mickey Mouse and Fantasia, just like, you know, like learning this new magical so…