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
Intermediate value theorem | Existence theorems | AP Calculus AB | Khan Academy
What we’re going to cover in this video is the Intermediate Value Theorem, which despite some of this mathy language, you’ll see is one of the more intuitive theorems, possibly the most intuitive theorem you will come across in a lot of your mathematical …
The Reason Why Cancer is so Hard to Beat
An undead city under siege, soldiers and police ruthlessly shooting down waves of zombies that flood from infected streets, trying to escape and infect more cities. This is what happens when your body fights cancer, more exciting than any movie. How does …
Michael Burry's 'Big Short' Against the Stock Market
Well, Michael Barry has been back in the news lately with a bombshell tweet. It turns out Christian Bale was actually wearing Michael Murray’s clothes in The Big Short, which does beg the question, whose clothes was Michael Barry wearing? Yes, the award-w…
Schelling Point: Cooperating Without Communicating
Let’s talk about the shelling point. Shelling point is a game theory concept made famous by Thomas Schelling in the book called “Strategy of Conflict,” which I do recommend reading. It’s about multiplayer games where other people are responding based on w…
Charlie Munger Explains Why Most Jobs Are A Waste Of Time
Well, if you got 30 people at headquarters and half of those are internal auditors, that is not the normal way of running a big company in America. And I what’s interesting about it is obviously we lose some advantages from big size, but we also lose cert…
The Timbuktu Job | Explorer
When Al-Qaeda invaded Northern Mali, it was only a matter of time before they started burning books. But in Timbuktu, one librarian decided he couldn’t let thousands of years’ worth of history and literature be destroyed without a fight. There was nothing…