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 Coronavirus Explained & What You Should Do
In December 2019, the Chinese authorities notified the world that a virus was spreading through their communities. In the following months, it spread to other countries, with cases doubling within days. This virus is the Severe Acute Respiratory Syndrome-…
How Many 5 Year-Olds Could You Fight? -- And 18 Other DONGs!
Hey, Vsauce. Michael here. And I am now living in London. Besides popping on over to Disneyland Paris, I’ve also been looking at DONGs: Things you can Do Online Now, Guys. For instance, because I’m now in Britain, my team has changed for clickclickclick.…
Examples dividing by tenths and hundredths
Welcome! So let’s see if we can figure out what 8 divided by 0.4 is. Pause this video and see if you can work through that. All right, so we’re trying to figure out what eight ones divided by four tenths is. One way to think about that is to think about…
Ten Years Later
[patriotic instrumental music, Edison Records phonograph cylinder - Rule, Britannia!] Hello Internet. Well, here we are. One decade later. Ha! I wish that was how it worked, but it is not. No, YouTube still feels like my new job even though I’ve put in a…
Creativity break: how does creativity play a role in your everyday life? | Khan Academy
[Music] As we move forward as scientists, as biologists, the old adage is true: a picture is worth a thousand words. So, what is that image, that graph, that graphic, or even that imagery, um, that really gets to the core of your idea? Um, it almost gets…
Greenhouse effect and greenhouse gases | High school biology | Khan Academy
In this video, we’re going to talk about the greenhouse effect and also the greenhouse gases which cause the greenhouse effect. Now let’s just start with a basic idea. Imagine if Earth had no atmosphere. What would happen? Well, you have the sun, which is…