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
Finding equivalent ratios in similar quadrilaterals | Grade 8 (TX) | Khan Academy
We are told Lucas dilated quadrilateral ABCD to create quadrilateral WXYZ. So it looks like he rotated and zoomed in or made it or expanded it to get this other quadrilateral. The fact that we used these types of transformations like a dilation and it loo…
Charlie Munger: Why your first $100,000 will CHANGE YOUR LIFE
Getting your first 100,000 saved and invested will change your life. The quicker you can hit that milestone, the better. But this advice isn’t coming from me; it’s coming from legendary investor and billionaire Charlie Munger. Hearing what Munger had to s…
How to Stop Worrying and Stressing about School
Hey, it’s Joey and welcome to Better Ideas! So, final exam season isn’t quite here yet, but it’s just around the corner. Students everywhere are just weeks away from entering crunch time, where all hell breaks loose, all-nighters are pulled, etc., etc. …
Ask me anything with Sal Khan: May 8 | Homeroom with Sal
Hey everyone, Sal Khan here from Khan Academy. Welcome to our daily homeroom live stream. If it’s your first time and are wondering what is this? This is a live stream that we started doing every day since school closure started happening ‘cause we realiz…
Don't Watch This If You're Hungry - Chef's Outrageously Good Lobster & Tuna Salads!
Look, I need eggs now! I can’t make this new sauce without eggs. All right, I’m on it, so chop chop, on my way! Chef: Wonderful! Here, Nantucket Island, it’s a classic. We do this every year. Now, the reason we’re gonna talk is it’s time to discuss the m…
IMPORTANT Tax Tips That Will Save You Thousands!
[Music] Hey guys, welcome back to the channel! In this video, we are going to be talking about 10 tax tips to help you guys get your tax returns sorted out. Because I’m doing this video specifically now, but as a bit of a reminder that if you’re an Austr…