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
Special Investigation: Famous Tiger Temple Accused of Supplying Black Market | National Geographic
This is all being done at night. Pitch black, there are no lights. You see the cars driving into the Tiger Temple and the staff workers that are helping the wildlife traders. In December 2014, at the famed Tiger Temple in Thailand, investigators say a gro…
P-values and significance tests | AP Statistics | Khan Academy
Let’s say that I run a website that currently has this off-white color for its background, and I know the mean amount of time that people spend on my website. Let’s say it is 20 minutes, and I’m interested in making a change that will make people spend mo…
If We Colonize the Moon, This Company Wants to Ship Our Stuff | Short Film Showcase
[Music] All good ideas start as crazy ideas, and then at some point, they occur. Then they become, “Why haven’t we been doing that all along?” We are right now in that transition for changing the way people think about the Moon. The Apollo missions were l…
This is what 65% of Millionaires ALL have in common...
What’s up you guys, it’s Graham here. So I put something interesting the other day, and that was it: 65 percent of millionaires have three sources of income, 45 percent of millionaires have four sources of income, and 29 percent of millionaires have five …
Multiplying monomials | Algebra I | Khan Academy
All right, in this video we’re going to be multiplying monomials together. Let me give you an example of a monomial: 4 x squared. That’s a monomial. Now, why? Well, mono means one, which refers to the number of terms. So this 4x squared, this is all one t…
Worked example: Using the reaction quotient to find equilibrium partial pressures | Khan Academy
For the reaction of iron II oxide plus carbon monoxide goes to solid iron and carbon dioxide, the equilibrium constant Kp is equal to 0.26 at 1000 Kelvin. Our goal is to find the equilibrium partial pressures of our two gases, carbon monoxide and carbon d…