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
How to Implement AI in Your Classroom
Okay, big welcome to everyone who’s joining! I know it takes a little while to get every possible Zoo member line signed up, but I have to tell you all I am so thrilled to be here today with you with a rock star panel of teachers. We have so many great Ed…
Challenges of naturalization | Citizenship | High school civics | Khan Academy
Now that we’ve talked about the naturalization process and the eligibility requirements for naturalization, let’s talk about how difficult it can be to become a naturalized citizen. Immigrant residents seeking naturalization face barriers throughout the p…
Ordering rational numbers compared to an average | Grade 8 (TX) | Khan Academy
We’re told four friends completed a 5 km run. Their average time to complete the run was 24 minutes. To compare their times, they created a table that shows the difference between each person’s time and the average time, with negative numbers representing…
Who Will Win the Geo Bee? | National Geographic
Okay, welcome to the championship round of the XXX National Geographic Bee! Out of 2.6 million students, 54 of the country’s brightest young geographers made it here to Washington, D.C. The top 10 earned their place to compete today, and now we’re down to…
2017 AP Calculus AB/BC 4c | AP Calculus AB solved exams | AP Calculus AB | Khan Academy
Let’s now tackle part C, which tells us that for T is less than 10, an alternate model for the internal temperature of the potato at time T minutes is the function G that satisfies the differential equation: The derivative of G with respect to T is equal…
Different mediums and the tone of the text | Reading | Khan Academy
Hello readers. I would like to show you one of my favorite things I ever wrote. It’s this splash page from a comic I wrote some years ago, illustrated by my friend Core Biladu. You’ll notice it has almost no words in it, at least in this form. Now, let m…