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
Restoring a lost sense of touch | Podcast | Overheard at National Geographic
[Music] As a kid growing up in the late 70s, science fiction was all about bionic body parts. There was the six million dollar man with the whole “we can rebuild him better than he was before,” and then most famously in a galaxy far far away there was Luk…
15 "Boring" Businesses That Can Get You to 1 Million Dollars
The less you innovate, the better are your chances of making money instead of losing it. 70% of startups fail within the first 10 years, so if you thought the easiest road to $1 million was just about creativity and disruption, you’d be wrong, my friend. …
Top 5: Favorite Books for Business, Wealth, and Success
What’s up you guys? It’s Graham here. So, I get asked all the time what my favorite books are and what books I recommend you guys read if you’re interested in making money or growing your wealth. These are my top five books that I love and would highly r…
Why These Cute Little Lizards Are Changing Colors to Survive | National Geographic
[Music] We’re interested in the big questions in [Music] biology. All of the animals that colonized this area had to go through an incredible amount of change in order to live in this unique environment. Hey, hey, hey, hey, hey, hey, hey, hang on, hang o…
Elon Musk $5 million donation to Khan Academy thank you
Hi everyone, Sal Khan here from Khan Academy, and I just wanted to give a huge shout out and thank you to Elon Musk and everyone at the Musk Foundation for their incredibly generous support for Khan Academy. They just recently gave a 5 million dollar don…
What are tax forms? (Part 2) | Taxes and tax forms | Financial literacy | Khan Academy
In this video, we’re going to go into some forms that are very useful when you are filling out your income taxes. If you work for someone as an employee, first and foremost, you’re going to get a W-2 form. I always find the W-2 form interesting. You typic…