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
What could be ahead for the US dollar?
Throughout the last, you know, 30-40 years, there have been many moments where we said we’re on the brink of collapse. What is the time frame you think for when this is going to get really bad? And when it does get really bad, what would that actually loo…
if statements | Intro to CS - Python | Khan Academy
We can use Boolean expressions to ask questions in our programs, but how can we branch control flow based on the answer? To do that, we need conditionals. Conditionals form the basis of selection; they allow the computer to decide which code to run depend…
It’s much easier to build when you’re optimistic.
We all, you all, get to create this future. Yes, and there’s this thing where it’s cooler and edgier and more punk rock. Yes, to be like everything is, and that’s a good high horse to be on if you want to be cool. But if you’re actually building things an…
Comparing features of quadratic functions | Mathematics II | High School Math | Khan Academy
So we’re asked which function has the greater Y intercept. The Y intercept is the y-coordinate when X is equal to zero. So F of 0, when X is equal to zero, the function is equal to, let’s see, F of 0 is going to be equal to 0 - 0 + 4, is going to be equa…
Explorers Festival, Saturday June 17 | National Geographic
From a distance, it always seems impossible. But impossible is a place we haven’t been to yet. Impossible is what beckons us to go further, to explore. It calls us from the wild, lures us into the unknown, asks us to dig deeper, to look at things from new…
Why It’s Hard to Forecast the Weather | National Geographic
People have short memories, and you’re only as good as your last forecast. So, if you mess up a forecast, especially a high impact forecast, people will remember that. A 3-day forecast today is about as accurate as a 1-day forecast was in the 1970s. If yo…