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
Miracle, Luck or Chance? | The Story of God
Most of us have a turning point in our lives, a pivotal moment where you wondered, “How did this happen?” Mine was 1989. I made three films: Lean on Me, Driving Miss Daisy, and Glory. Did I make it happen? Was someone up there calling the shots, or was I …
Understanding your Life Cycle Phase and Your Important Choices
While individuals going through life can know ahead of time the experience that they’re probably going to encounter, they can’t know exactly what going through that experience is going to be like until they go through it. However, they can get good guida…
Ecological succession | Biodiversity and human impacts | High school biology | Khan Academy
You look at a community that is in a given habitat. A natural question is to say, “Well, has that community always been that way? Has it always been there? Was there a time where maybe there was no life there?” And the answer is, well, yes, the communitie…
Michael Seibel - Startup Investor School Day 2
So just a couple of notes. If you’ve noticed, a lot—maybe all—of the presenters thus far are YC people. That’s not going to end right now. However, the rest of the course is mostly, almost exclusively, perspectives on investing from outside of YC. So, don…
Ancient Egypt | Early Civilizations | World History | Khan Academy
[Narrator] In this video, we are going to give ourselves an overview of ancient Egypt, which corresponds geographically pretty closely to the modern day state of Egypt in northeast Africa. Now, the central feature in both ancient Egypt and in modern Egypt…
Spectrophotometry and the Beer–Lambert Law | AP Chemistry | Khan Academy
What I want to do in this video is to talk a little bit about spectrophotometry, spectrophotometry, photometry, which sounds fairly sophisticated, but it’s really based on a fairly simple principle. So if I have, let’s say we have two solutions that cont…