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
Eaten by Jaws and Big Wave Surfing| Edge of the Unknown on Disney+
JUSTINE DUPONT (VOICEOVER): [SPEAKING FRENCH] FRED DAVID: Four years ago, we moved to Nazaré. And we decided to focus on big wave surfing. Every big wave is different. But I think Nazaré is probably the best place to learn how to deal with big waves. MA…
Harj Taggar - Choosing a Startup to Work At
Hey everyone, I’m Harj. I’m a partner at Y Combinator, and I’m going to answer how do you choose a startup to work at. So the first thing is to be sure you actually want to work at a startup. Working at a startup is not for everyone. It’s a very unique e…
#shorts Top 3 Picks - Affordable Watches
Can only pick three, rank them 3, 2, 1. Yeah, it’s going to be tough because there’s some great ideas here. I’m going to have to choose between these two, ‘cause I love them both. So, you have a Seiko and then you have a Boulle over there. Oh, that’s toug…
Follow Mexico's 'Bat Man' on a Search for Vampire Bats | Short Film Showcase
[Music] To an untrained eye, you see a rainforest, but someone who has a little bit of information of what was going on there can see the effects of humans all over the place. [Music] The Maya lived here for over 1,500 years, sustaining densities that wer…
Learn coding from scratch with Khanmigo
Did you know that Khan Academy just launched their AI-based education chatbot? It’s called Khan Mego, and it’s a beta tool that is available. Your website basically gives you a preview of what the chatbot is going to look like, and it looks pretty legit. …
Safari Live - Day 222 | National Geographic
This program features live coverage of an African safari and may include animal kills and carcasses. Viewer discretion is advised. This is why the inclusion of McBride is such a firm favorite. [Music] It just looks ready for a fight; this is still her ter…