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
Types of competition and marginal revenue | APⓇ Microeconomics | Khan Academy
We’ve already had several videos where we talk about the types of markets that we might look at in economics. At one end, you might have perfect competition. Let’s write perfect comp. This is where you have many firms. What they produce is not differenti…
How To Become Whole (Carl Jung & The Individuation Process)
Conscious and unconscious do not make a whole when one of them is suppressed and injured by the other. If they must contend, let it at least be a fair fight with equal rights on both sides. Both are aspects of life. — Carl Jung. In my previous videos ab…
Before You Visit Angkor Wat, Here's What You Need to Know | National Geographic
Eager to experience a spectacular sunrise at Cambodia’s ancient Angkor Wat? Here’s everything you need to know to get to this iconic site and make the most of your visit. Angkor Wat is actually just one of over a thousand temples that make up the ancient…
We Feed People | Official Trailer | Disney+
Take a look. We’re going through very high water. Is the only way to be delivering food? I’m so glad that we had this track. I hope we are able to feed the people, but they hope we are going to be safe. Pump, I love the word cook because the word cooked …
Human Origins 101 | National Geographic
[Narrator] Millions of years before industry, agriculture, and civilization, the world stage was set for one creature’s unprecedented rise. The story of humanity’s evolution began about seven million years ago when the human lineage broke away from that o…
The Season of Twilight | National Geographic
The best photographs keep something from us, and there’s no better time for mystery than the Twilight hour. Much of my work as a photographer takes me to the Arctic, but I really haven’t spent much time in Canada in the winter. Shorter days allow me to ca…