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
2015 AP Chemistry free response 3e | Chemistry | Khan Academy
The initial pH and the equivalence point are plotted on the graph below. Accurately sketch the titration curve on the graph below. Mark the position of the half equivalence point on the curve with an X. All right, so we have— they show us the initial pH …
The Horror of the Slaver Ant
Everything changed when the slaver Nation attacked. What used to be a thriving colony is now a captured country. Slaves do the work, serving their new Masters until they die, only to be replaced by new victims harvested in brutal raids. But let’s go back …
A collection of my best advice on mediation
I’m so glad that some of our conversations are on meditation, so I have a number of questions that I get on meditation. Uh, what time? There are just many, many, many types of meditation, and I suppose they’re probably almost all good. I’ve only experienc…
The Mobile Home Economics | Explorer
[music playing] Frank Rolfe? Yes. Billy Mintz. Hi, Billy. How are you? BILLY MINTZ (VOICEOVER): Frank Rolfe’s company is the fifth largest owner of mobile home parks in the United States. BILLY MINTZ: Beautiful place. FRANK ROLFE: Thank you very…
Simulating a beehive with for loops | Intro to CS - Python | Khan Academy
Let’s design a simulation with for loops. We want to answer the question: How much honey does a beehive produce over a certain period of time? Now, there are a lot of variables that might impact honey production, like the geography, the weather, and what…
Writing whole numbers as fractions
We’re told that each rectangle is a hole, so this is a hole right over there. That’s one hole, and so this is two holes. Which expressions describe the shaded part of the picture? They’ve shaded in everything and they say, “Choose to answer.” So pause th…