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
Don’t Buy A Home In 2023 (Sellers Panicking)
Americans are leaving California and New York in droves. People are getting fed up and moving to Arizona, Nevada, Texas, or Florida. The main reason why is money. What’s up, Graham? It’s guys here. So for the first time ever, the housing market is being c…
Great founders actually build.
So this question is: what are the biggest red flags for startup founders that you’ve interviewed? There are many, many things that I look for in interviews, but one of the most important things I look for is the ability for the team to build the product …
Death Along the Ganges River | The Story of God
Bodies have been cremated on the banks of the River Ganges for hundreds of years, bathed in the waters of their holy river, wrapped in linen, and placed on a wooden pyre. The dead are consumed by flame. Swami Barista, a monk and a doctor, is my guide to d…
Appositives | Punctuation | Grammar | Khan Academy
Hello grammarians and hello Paige. Hi David! So today we’re going to be talking about the appositive, which is just a monster of a word, right? Uh, I can tell you that from my limited study of Latin, right? It comes from “ad positio,” which is like putti…
15 Types Of People YOU NEED TO AVOID
It is not a strange thing to say that the type of people you surround yourself with have a significant impact on your life. After all, a lot of your time will be spent with them, and it is only natural that their habits and the things they say would affec…
Warren Buffett on One Last Day with Charlie Munger | Berkshire Hathaway 2024
Hi, my name is Andrew Ncas, and I’m wondering if you had one more day with Charlie, what would you do with him? [Applause] Well, it’s kind of interesting because, in effect, I did have one more day. I mean, it wasn’t a full day or anything, but he, we al…