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
Who is eligible for naturalization? | Citizenship | High school civics | Khan Academy
In this video, we’re going to cover what criteria a non-citizen must meet to become a citizen, a process we call naturalization. Some of the requirements are obvious and verifiable, while others are tested through the naturalization process. There are nin…
Cooking a Chicken in a Particle Accelerator #kurzgesagt #shorts
Cooking a chicken with a particle accelerator, how would that work? First, we need a raw chicken. That’s easy. Then, we need a particle accelerator. So, let’s put a chicken in it. To avoid collisions between air molecules and beam particles, we have to p…
10 Monthly Routines To Skyrocket Your Productivity
You know, locks are the routines we build. They’re not just about getting more things done. They’re designed to enhance our overall well-being and efficiency, helping us to become the best version of ourselves. So whether you’re a seasoned go-getter or ju…
Worked example: divergent geometric series | Series | AP Calculus BC | Khan Academy
So we’ve got this infinite series here, and let’s see. It looks like a geometric series. When you go from this first term to the second term, we are multiplying by -3, and then to go to the next term, we’re going to multiply by -3 again. So it looks like…
Reflecting & compressing functions | Mathematics III | High School Math | Khan Academy
[Voiceover] So we’re told g of x is a transformation of f of x. The graph below shows f of x as a solid blue line. So this is the graph of y is equal to f of x, and the g of x is a dotted red line. So that’s the graph of y is equal to g of x. What is g of…
I FOUND THE 5 WORST CREDIT CARDS EVER...(AVOID THESE!)
[Music] What’s up you guys, it’s Graham here! So buckle your seatbelts, ladies and gentlemen. I hope you’re sitting down for this one. You know, on this channel we’ve talked about the best credit cards to get free stuff, the best credit cards for free tra…