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
Why Die?
When do you want to die? The Reaper is busy, but he can fit you in right now. Too soon? Later, perhaps? Future you will keep the appointment? Old and with a life fully lived, perhaps ever so slightly bored and ready? Now you might think that, but when th…
DeepSeek R1 Explained to your grandma
This new large language model has taken the tech world by absolute storm and represents a big breakthrough in the AI research community. Last Sunday, while TikTok was banned for 12 hours, an AI research team from China released a new large language model …
TikTok Is Causing A Mass Psychosis
[Music] In June 2019, Kirsten Muellerval, a psychiatrist at Hanover Medical School and head of its Tourette’s outpatient department, noticed unusual symptoms in her new set of patients. To begin with, all of them were teenagers, and they were suffering fr…
Seth Klarman: The Investing Opportunity of a Generation (First Interview in 12 YEARS)
Do you think that opportunity that you had in 1979 still exists in 2023? Seth Clarman is a legendary investor who just broke his 12-year silence to reveal the secrets to outperforming the market and the investment opportunity he would dedicate his life t…
Keeping the Inuit Way of Life Alive in a Changing World | Short Film Showcase
Inuit were born to be outside. My earliest memories of growing up with my family were connected to the land, using dog-teams, skin tents. Hi ox he lived on the land. You took what you needed. We didn’t have electric power; we didn’t have modern convenien…
Phosphorous cycle | Ecology | Khan Academy
So let’s talk a little bit about the element phosphorus and its importance to life and how it cycles through living systems. We’re going to talk about the phosphorus cycle. So first, it’s important to appreciate that phosphorus is a very reactive element…