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
His House Survived a Devastating Wildfire. Now, It's an Island in the Ashes | Short Film Showcase
[Music] My name is Jerry Burs. I’ve been living in this house for the last ten years. [Music] Fountain Grove is one of the most beautiful spots in California. The weather is fantastic; the flora and the fauna are incredible. We have our little problems wi…
Letter from a Birmingham Jail | US government and civics | Khan Academy
What we’re going to read together in this video is what has become known as Martin Luther King’s “Letter from a Birmingham Jail,” which he wrote from a jail cell in 1963 after he and several of his associates were arrested in Birmingham, Alabama, as they …
Ron Howard and Brian Grazer Talk 'Genius' | National Geographic
I’m Ron. I’m Brian, and we’re here to talk to you about National Geographic’s first scripted show on genius. We’re focusing on Albert Einstein: 10 episodes that encompass his entire life. We, as contemporary people in this contemporary civilization that …
Slow Motion of an AK-47 Underwater (Part 1) - Smarter Every Day 95
Hey it’s me Destin. This week on Smarter Every Day, I’m gonna trick you into learning science using a gun and a high speed camera. You remember the old pistols underwater video? Well this week I’m gonna do it with a better high speed camera, and a bigger …
Meth in the City (Clip) | To Catch a Smuggler | National Geographic
If you take a quick look at this, so you don’t see anything. Okay. The only thing that might give it away is this part, what we glued it again, so that it’s an indication that somebody opened it up and glued it back again. Now, you can see here the vein,…
Will the Stock Market Crash if Joe Biden is Elected President?
A lot of people are concerned that if Donald Trump doesn’t get re-elected, then we’re going to see the stock market come crashing down, because Trump is very much focused on policies that help out businesses, whereas Joe Biden is more focused on the avera…