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
The Life of a Miner In Colombia | Mine Hunters
Meanwhile, outside, Fred is using his experience in large commercial gold mines to build a system that can protect the area around the mine. So basically, what’s happening here is we’ve got a lot of water drainage out of the mine, and with the water’s co…
Charlie Munger & Warren Buffett: The Dangers of EBITDA
If somebody is, if they think you’re focusing on EBITDA, they may arrange things so that that number looks bigger than it really is. It’s bigger than it really is anyway. I mean, the implication of that number is that it has great meaning. You take teleco…
LearnStorm Growth Mindset Livestream
Ask your kid, “What’d you do today?” or “What’d you do today at school?” “Nothing.” “How was it?” “Fine.” You know you always hear that, but if parents can be intentional about how they talk to their kids after school. I always ask my kids, and we hav…
This Particle Breaks Time Symmetry
Most processes in our universe are time reversible. In other words, the physics works the same way forwards or backwards. Which is why you can’t tell if I’m playing these videos normally or in reverse. People typically point to entropy as the only excepti…
Electromagnetic waves | Physics | Khan Academy
What’s common between a Wi-Fi router, our bodies, and an incandescent bulb? We all give out electromagnetic waves. But why do we do that? And why are they all so different? How do we use some of them for wireless communications? Let’s answer all of them. …
Leafcutter Ants Slice Leaves for the Colony | A Real Bug's Life | National Geographic
Finally, our little leafcutter has reached the canopy. So, this is where the harvest happens? Everyone’s working hard before the weather turns. Slicing through leaves and bouncing their booties as they go. It creates rhythmic vibrations that other ants fe…