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
Can causality be established from this study? | Study design | AP Statistics | Khan Academy
A gym that specializes in weight loss offers its members an optional dietary program for an extra fee. To study the effectiveness of the dietary program, a manager at the gym takes a random sample of 50 members who participate in the dietary program and 5…
Warren Buffett's Inflation WARNING for 2021
From raw material purchases by Berkshire subsidiaries, are you seeing signs of inflation beginning to increase? We’re seeing very substantial inflation. It’s very interesting. I mean, we’re raising prices, people are raising prices to us, and it’s being …
Distillation | Intermolecular forces and properties | AP Chemistry | Khan Academy
Let’s say that you have a solution where the solvent is water and the solute is what we would consider drinking alcohol or ethanol. So, this is our solution right over here. Let’s say that it is 10 percent ethanol, which is drinking alcohol, and let’s say…
Taxing Unrealized Values Can Destroy Billionaires
Most people don’t realize that this can actually make Warren Buffett and Jeff Bezos go broke and send their stocks crashing. The reason is because 48 trillion dollars of stock value equals zero dollars in real money, and the IRS only takes real money. Bi…
Uncovering the Secrets at Mirador | The Story of God
I got involved with Mirador by invitation from two scholars since I spoke Spanish. They were exploring the swamps surrounding Madrid, and while we were there, they put me in charge of the architecture because of the massive scale of buildings there. I dis…
How To Become A Millionaire: Index Fund Investing For Beginners
What’s up you guys, it’s Graham here. So let’s cover one of my favorite ways to invest ever, besides real estate. I would even go so far as to say that this is the best, safest, and easiest long-term investment strategy out there for most people. Also, th…