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
Khan Academy's Official Digital SAT Prep Webinar
Good afternoon, and welcome to preparing your school for the digital SAT webinar. We are so happy that you’re able to join us this afternoon to learn more about the new digital SAT and how KH Academy can help support your teachers, students, and community…
Using context clues to figure out new words | Reading | Khan Academy
Hello readers! You know that feeling when you’re reading and you see a word you’ve never seen before and you don’t really know how to figure out what it means? Well, that’s what we’re talking about today: strategies for figuring out new words through cont…
You Are The Center of The Universe (Literally)
A three story building is about 10 meters tall, six times bigger than you. In the opposite direction, six times smaller than you, you get things like a cute squirrel about 27 centimetres small. So the building is just as big relative to you as you are to …
Can You Recover Sound From Images?
This video was filmed without sound. Is it possible to use only these images to reconstruct the sound? That is, can you hear pictures? In this video, I’m gonna try to demonstrate that it’s possible to get sound from pictures, but it’s not gonna be easy, s…
Cell specialization | Genes, cells, and organisms | High school biology | Khan Academy
Ah, the basic building blocks of all living things: cells. These incredible packages of organelles and subcellular components carry out a variety of functions in the body, like taking in nutrients, converting them into energy, and working with other cells…
How to Sell Anything by Tony Robbins *rare video
So all you have to do to persuade someone is do two simple things. One, you have to identify, and ideally that first step you’re going to do is you’re going to identify the buying state. One, and two, is you’re going to anchor it—anchor that state to your…