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
Kirsty Nathoo with Shan-Lyn Ma, Founder of Zola
Okay, hi everybody. I’m Kirsty Nathu. I’m one of the partners at Y Combinator, and it is my great honor to introduce Shanna Lynn, MA, who’s the CEO of Zola. Zola has reinvented the wedding gift registry, and they’ve now worked with hundreds of thousands o…
15 Reasons Why People Fail
You know, failure is something that happens to all of us at some point. It’s like running into a roadblock when you’re trying to get somewhere. What’s even more concerning is that many times we find ourselves tripping over our own shoelaces, so to speak. …
Recognizing quadratic factor methods
We have other videos on individual techniques for factoring quadratics, but what I would like to do in this video is get some practice figuring out which technique to use. So, I’m going to write a bunch of quadratics, and I encourage you to pause the vide…
Why Ocean Exploration is so Important
The ocean is obviously our biggest and most important natural resource. Consider that it’s twice the size of all continents combined, and it’s almost totally unexplored. It’s thrilling to be able to explore it. So, I’m on a mission to make you excited, m…
Apocalypse | A Pastor, A Rabbi and an Imam | The Story of God
Okay, so stop me if you’ve heard this one: a rabbi, a pastor, and an imam walk to a bar. Okay, so it wasn’t a bar; it was a diner to discuss my show, “The Story of God,” about the apocalypse. So the rabbi says, “Share with me a little bit about how the I…
Ruby Jean's Juicery | Black Travel Across America
That same spirit is alive and healthy today all over this city. Black owned spaces have a knack for preserving our past while nurturing the future. So you brought her in? Case in point, Ruby Jean’s Juicery, which combines nutritious food with family root…