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
15 Money Secrets They Don't Teach You In School
The school system is designed to keep people poor and mediocre. It was never designed so you could become rich and live a life full of prosperity. It was designed to raise employees that are obedient and never dream big. And if you want to change that pro…
A Former FBI Agent Explains the Terrorist Watch List | Explorer
What exactly can the government do to him, to any of us, whether we’re on the watch list or not? As a journalist, my first hunch is to go straight to the source. Michael German is a former FBI agent who has experience with the terrorism watch list. What …
Evaluating compound boolean expressions | Intro to CS - Python | Khan Academy
How does the computer evaluate expressions with the logical operators and, or, and not to find out? Let’s explore the order of operations for compound Boolean expressions. Imagine we’re working on a program to check if a specific song matches the filters …
Professor Brian Harvey on why not to cheat
There are limits to your working together. You’re going to be hearing this from every single instructor this week, right? You’ve probably already heard it six times. Don’t cheat. I think that some of what people tell you about this is nonsense. For examp…
The Crisis of Credit Visualized - HD
The crisis of credit visualized. What is the credit crisis? It’s a worldwide financial fiasco involving terms you’ve probably heard, like subprime mortgages, collateralized debt obligations, frozen credit markets, and credit default swaps. Who’s affected?…
Why are snowflakes like this?
[Ken] Now, I’m gonna turn on 2000 volts. [Derek] What? And this is the first step in creating snowflakes in the lab. This is totally wild. What? Crazy, huh? The tips of those needles are like a hundred nanometers in diameter. [Derek] That is so wild.…