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
Getting Started with Khan Academy and Khan Academy Kids for Remote Learning
All right, hello everybody, and thank you all for taking time out of what’s got to be an incredibly busy day to join us for this webinar. My name is Karen White, and I’m on the product team here at Khan Academy. I’m also the mother of two girls, ages 12 a…
Meaningfully composing functions | Composite and inverse functions | Precalculus | Khan Academy
We’re told that Jalen modeled the following relationships about their bus ride. So there’s three functions here; we have their inputs and we have their outputs. So, function P: the input is the time the bus arrives, given as lowercase b, and the output i…
Renewable Energy 101 | National Geographic
Around the world, renewable energy use is on the rise, and these alternative energy sources could hold the key to combating climate change. What is renewable energy? Renewable energy is generated from sources that naturally replenish themselves and never…
Finding measures using rigid transformations
We are told that triangle ABC, which is right over here, is reflected across line L. So it’s reflected across the line L right over here to get to triangle A prime, B prime, C prime. Fair enough! So based on that, they’re going to ask us some questions, …
Voltage | Introduction to electrical engineering | Electrical engineering | Khan Academy
Voltage is one of the most important quantities and ideas in electricity. In this video, we’re going to develop an intuitive feeling for what voltage means. It has to do with the potential energy of electrical charges, and that’s what we’re going to cover…
How Talking About Your Goals is (secretly) Destroying Your Success
[Music] So pretty much everyone knows that one guy who on New Year’s Eve proclaims to all his friends his ambitious plans to go to the gym every day or wake up at 7 a.m. every morning for the whole year. And they go and buy new workout clothes, install ha…