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 You'll Regret Buying A Home In 2022
What’s gram up! It’s guys, you here. So, the other day, I was minding my own business, reading the internet while sipping on some coffee from bankrollcoffee.com. And all of a sudden, this headline hit me like a ton of bricks: A brand new survey just repor…
"The Biggest Mistake I've Ever Made" | Shark Tank's Kevin O'Leary & "The Mooch" Anthony Scaramucci
What do you tell them about building their own net worth and how to go forward and not trip up in that aspect? So many kids come out of college $80,000 in debt and they go straight downward from there. What advice do you give young kids in terms of start…
How to Raise Capital For Your Business | Shark Tank's Kevin O'Leary and Mark Cuban
As an entrepreneur just starting out, I’ve been told that, um, I need to raise money from friends and family. Most of those people that are saying that have friends and family who have been able to give them, um, you know, sizable amounts of money. But fo…
Worked example: coefficient in Maclaurin polynomial | Series | AP Calculus BC | Khan Academy
Nth derivative of g at x equals 0 is given by. So the nth derivative of G evaluated at x equal 0 is equal to n + 7 over n 3r for n is greater than or equal to 1. What is the coefficient for the term containing x^2 in the McLaurin series of G? So let’s ju…
The Future For Cryptocurrencies After Bitcoin Mining Ban
[Music] I want to switch a little bit and talk a little bit about the sort of systematic approach, and you know you being a big part of Shark Tank, and going through a large amount of different pitches and different businesses, looking at the numbers. Is …
Charlie Munger: How to Invest
Charlie Munger is without a doubt one of the most respected names in the value investing world. He’s been Buffett’s right hand man for many decades and still serves as the vice chairman of Berkshire Hathaway at 99 years old. But as many of you may know, h…