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 mole and Avogadro's number | Moles and molar mass | High school chemistry | Khan Academy
In a previous video, we introduced ourselves to the idea of average atomic mass, which we began to realize could be a very useful way of thinking about a mass at an atomic level or at a molecular level. But what we’re going to do in this video is connect …
Apple Vision Pro: Startup Platform Of The Future?
How much of like the hard interesting stuff Apple did is with the hardware in The Vision Pro versus the software? Well, you need to understand the real world in order to augment it—technology of a self-driving car but on a headset. This is maybe where Fou…
Simplifying square-root expressions | Mathematics I | High School Math | Khan Academy
Let’s get some practice simplifying radical expressions that involve variables. So let’s say I have ( 2 \times \sqrt{7x} \times 3 \times \sqrt{14x^2} ). Pause the video and see if you can simplify, taking any perfect squares out, multiplying, and then tak…
How to lose all your friends in life
Have you ever thought to yourself, “Damn, I have way too many friends. I am so popular; I need to start getting rid of people.” Well, in this tutorial, I’m going to teach you how to make everybody you know and love slowly drift away from you over the cour…
Evolution | Middle school biology | Khan Academy
[Speaker] How many different species or kinds of birds are there? Take a guess. 100, 1,000, more? Well, biologists have estimated that there are at least 10,000 different species of birds all around the world, and some biologists think that there are ev…
A Suspiciously Expensive Delivery | To Catch a Smuggler: South Pacific | National Geographic
Auckland International Airport processes 21 million passengers every year and climbing. Customs and Immigration have just been alerted to a visiting Lithuanian woman with quite a history. Officer James is keen to take on the case. It looks like she had so…