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
Bitbutter, guest on Decline to State podcast
Hello and welcome to the Decline to State Internet radio stream, the show where we get together to discuss the ups and downs of life outside the matrix. Decline to State is proud to bring you a surprisingly few net casts in which the hosts do not support …
A productive day in my life vlog
Hi guys, it’s me, Dude! Today, we’ll look at a day of a productivity ninja. I woke up at 5:30 AM using my Yabai sunlight alarm. I represented my waking up scene to show you guys how I feel when I wake up super early. We had many things to do this day, so…
#shorts Type-B Dial
So this is a brand known as Loo. There are type A style dials and there are type B style dials. Type B is going to have a different orientation of the hours and minutes. So the hours in this case are on the inside; the minutes are on the outside. That wa…
Kevin O'Leary Shops for AFFORDABLE WATCHES | Ask Mr. Wonderful
Welcome to another episode of Ask Mr. Wonderful! And guess who I’ve got with me? You’ve met him before. Teddy is an absolute author of great work on watches. I love him; I love his depth of knowledge. But you know, we talk so much about really expensive p…
Phases of the moon | Middle school Earth and space science | Khan Academy
Imagine that one day all of the clocks and computers on Earth broke and all the calendars disappeared. How would you keep track of how much time had passed? Well, you could look to the moon. Humans have used the moon to keep track of time for thousands of…
Light dependent reactions actors
In a previous video, we gave an overview of the light-dependent reactions, which are essentially occurring across the thylakoid membranes. Right, and we zoomed in on one, and we saw, okay, we have some energy from light exciting the electrons within the c…