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
HOW TO MAKE EASY MONEY IN THE STOCK MARKET
What’s up? Grandma’s guys here! So, after a year patiently waiting and getting hundreds of comments, DMs, emails, letters, and smoke signals asking me how my stock market investments are doing, the time has finally come to reveal exactly how much money I …
Gyroscopic Precession
Hey everyone, it’s me, Derek from the channel Veritasium. I’ve been following this series by Destin on Smarter Every Day about helicopters, and gyroscopic precession is just one of those things that still blows my mind, as it did Destin. So, I’m here at t…
From Summit to Subterranean: Chasing Adventure in San Antonio, Texas | National Geographic
When you’re in the cave, you’re so hyper-focused because there’s no distractions, and so for me, it’s almost meditative. [Music] I started in adventure photography with winter sports. Now I’m here in Texas to find that adventure, but underground. Hi, it…
Relative clauses | Syntax | Khan Academy
Hello grammarians! Hello Rosie! Hi David! So today we’re going to talk about a special kind of dependent clause, which again is a kind of clause that can’t be a sentence on its own, called a relative clause. A relative clause is a dependent clause that s…
Democracy: Structural defects
When a person thinks about the idea of a stateless society, it’s natural that they do so in relation to a political order they have firsthand experience of: a representative democracy. Usually, there’s a widespread belief that although this kind of democr…
Who Is Responsible For Climate Change? – Who Needs To Fix It?
Since the Industrial Revolution, humans have released over 1.5 trillion tons of carbon dioxide or CO₂ into the Earth’s atmosphere. In the year 2019, we were still pumping out around 37 billion more. That’s 50 percent more than the year 2000 and almost thr…