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
Collecting Crab Pots | Alaska: The Next Generation
You’ll learn as you’re going and get older, you make your own shortcut. You’ll always make it back home. Ready, Glyn? Oh, yeah. Glyn and I are off to pull out crab pots from Olga Bay, where he has one and I have one. And that increases our chances of get…
ROBINHOOD STRIKES BACK - THEIR RESPONSE!
Well, ladies and gentlemen, it happened. Amid all the controversy surrounding the recent $0 trade announcement started by the internet bully Charles Schwab, Robin Hood just seemed like it was destined for loss with no competitive advantage whatsoever. Tha…
What Would Your Life Be Like If You Reshuffled the Order of Events? | Short Film Showcase
Some in the afterlife, you relive all your experiences, but this time with the events reshuffled into a new order. All the moments that share our quality are grouped together. You spend two months driving the street in front of your house, seven months ha…
This Man Turned His Life Around by Mastering Falconry | National Geographic
Falconry is the oldest land sport known to man. Before you had any gun, you use the bird. [Music] People get into it for different reasons. Some people love to hunt. I love the fact that it’s an animal; then I get to bond with this beautiful thing. My na…
Enduring the Journey to Mars | MARS: How to Get to Mars
[Music] Human physiology doesn’t adapt well to space, and things start failing in the body. The bones begin to leech out minerals that it thinks it doesn’t need in a microgravity environment; it’s got to be replaced. We’re learning about problems in the e…
Comparing payment methods | Consumer credit | Financial Literacy | Khan Academy
Let’s say that we have decided to buy a television for $499, and we now need to think about how we are going to pay for this $499 television. We know we have many different options, and I’m presenting five of them to you in this video. We could pay with c…