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
Reimagining Dinosaurs with Women of Impact | National Geographic
Okay, hi! I think we’re good to go. Welcome everybody! Um, today’s Women of Impact panel on reimagining dinosaurs, and we’ve got three incredible women paleontologists around the world, with London and the United States represented today in this panel. Um…
The Ponzi Factor: Trailer Part 2 (Unfinished)
In reality, the stock market is a massive system that shuffles money between investors. It is a system where current investors’ profits are directly dependent on the inflow of money from new investors. Such a system is also known as a Ponzi scheme. But wh…
How to sell a $13,500,000 private jet!
I saw your advertisement for a Global Express. It’s your 2005. What can I tell you? How much are you wanting for it? 13 million 500,000. Are you doing this for a customer? No, we are currently… we have a small jet at the moment. We have a little L 35A.…
End behavior of rational functions | Mathematics III | High School Math | Khan Academy
So we’re given this function ( f(x) ) and it equals this rational expression over here. We’re asked what does ( f(x) ) approach as ( x ) approaches negative infinity? So as ( x ) becomes more and more and more and more negative, what does ( f(x) ) approac…
Highest Resolution Machu Picchu Picture Ever Taken- Smarter Every Day 66
Hey, it’s me Destin. Welcome back to Smarter Every Day! So today, we’re in Peru. It’s pretty awesome. We’ve assembled a team of people, and we’re going to capture Machu Picchu in the highest resolution photo that’s ever been made of it. We’re gonna let yo…
Know the Law - Smarter Every Day 8
So a couple of days ago a guy named Chris was detained here in Baltimore, right here at the Cultural Center light rail station. Well, all he was doing was taking video of trains. It was his hobby. Why shouldn’t he be able to do that? ”…that’s your story.…