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
The Biggest Ideas in Philosophy
In the city of Cyprus in 300 BC, there lived a very wealthy traitor called Zeno. While on a voyage from Phenicia to Perez, his boat sank along with all of his cargo. Because of that single event, an event that was entirely out of Xeno’s or anyone’s contro…
Overview of early Judaism part 1 | World History | Khan Academy
What I’m going to do in this video is give a very high level history of some of the significant events in Judaism. I will use the word history loosely because historians aren’t able to really find a lot of evidence for some of what I’m going to talk about…
Top Hats for CATS! LÜT #25
Star Wars splatter art and a t-shirt commemorating one of history’s most lapidary quotes. It’s episode 25 of LÜT. Navigate the web with a glow-in-the-dark mouse containing an actual spider. And you can use a straw to drink juice right out of a fruit, but …
Money: Humanity's Biggest Illusion
If I asked you the question, “What is man’s greatest invention?” what would your answer be? There’s a lot of options. Would it be fire because it gives us warmth, protection, and the ability to cook our meals? Or perhaps you would pick the wheel because i…
Outsiders & Outcasts (For Those That Don't Belong)
As a deer in the wilds, unfettered, goes for forage wherever it wants: the wise person, valuing freedom, wanders alone like a rhinoceros. From the moment we are born as human beings, the people around us prepare us to fit the herd. We start out as being p…
National Geographic Takes on New York Fashion Week | Fit for a Queen | NYFW
[Applause] Queens is a project about female leadership, not only in front of the camera but behind the camera, telling a story about nature in a new way. And there couldn’t be a better time in history right now to be getting that message across. The titl…