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
Chicken Powered Steadicam vs Kid cam
All right, let’s start. Your camera is now recording. Let’s start the chicken’s camera. Say hello to the chicken. Hello, chicken. Say hello, chicken. Hello, chicken. All right, a couple years ago, I made a video called “Chicken Head Tracking.” Well, tod…
Here's Why I AM the BEST Salesman in the World! | Kevin O'Leary
[Music] So, Shark Tank, luck. People don’t understand it’s a really grueling, tough, long day, and you got to be sharp because you’re basically buying and selling millions of dollars worth of product. So, that means you can’t go there with a hangover. Bel…
Ponzi Factor | V-Log 3 | Tesla $420 scam
Hey everybody! So I was gonna do a V log about how to do research with the SCC filings, but instead this came up with respect to Tesla and how Elon Musk said he is not gonna take the company private after he tricked everybody on August 7th about how he wa…
ORDERING EVERYTHING ON THE MENU WITH YOUTUBE AD REVENUE
What’s up you guys? It’s Graham here! So thanks to all of you watching my videos, I made about $200 so far on YouTube ad revenue. Now, instead of just going and putting that money in my bank account, I thought it would be a lot more fun to give it all bac…
Exploring the danger & beauty of an ice cave for the first time | Never Say Never with Jeff Jenkins
OSKAR: So there are a few things we need to have in mind. JEFF: Okay. OSKAR: Before we go in. So we can see like the roof here. JEFF: Yeah. OSKAR: How thin it is. And this part can collapse, and it does. And then inside the ice cave, you can hear the …
Sharks 101 | National Geographic
(ominous music) [Narrator] They glide through the water with unmistakable grace, remnants of an ancient past. They dive and they rise from the ocean’s murky depths to its sun-kissed shallows, rousing fear and awe like no other creature in the sea. The wo…