So of come back this lesson is actually an exercise whether one shouldn't do it or wants to make a brand
new application that has a label and it takes you and within those you essentially shows some details
about yourself and the city in which you live.
Let me jump back to the simulator and show you the end result that is kind of the app that they want
to see as a label on the top.
There's a text in here that takes you or has the name of the city very limited the version in there
something about the sunrise and sunset.
And that's pretty much all that is there.
I just wanted to do this one more time and also get the sense of formatting some of the text that goes
into the text.
So Paulista be doing now do it on your own.
And then I'm going to try this out for you.
All right let's get started with this.
I'm going to go back to school.
I'm going to close this application close it down and say come on shift and make a new application so
you get to view our labels and text us.
I'm going to say next.
I'm place it in the same space as always.
I don't want to use.
Good for now.
Once the app is ready once the project is ready I'm going to go to my storyboard in here I'm going to
go.
Had a label on the very top that is going to be my neighbor and I'm going to change some of its details.
Charles I'm going to give you a different background color or maybe a different even text color.
Change its funds slightly larger maybe life the center.
And then I'm going to go ahead and add a text to your I'm going to add it here something like that.
And then I'm going to extend it to be summer about this.
Now I'm going to put up my assistant and the assistant editor let me get myself a little bit more space
on that and go ahead and say Show me the door.
HYL.
I did that at age five.
I'm with a concert like the label and call it name the label that's what I'm going to show my name and
then I'm going to control drag the text view.
This one I'm going to call the details text if you
so now we have the two outlets.
Each of them relating to one of the elements that I have in my visual interface.
So let's jump back toward that.
M-file I can start coding some stuff on both of them and as usual for now we are going to the body of
the lot and if you want to you can actually bring this curly bracket down to that kind of gives you
an indication of the various thoughts on it.
And essentially on the same column I kind of like it better this way.
So the next thing I'm going to do I'm going to say name LLEVA dot text is going to show my name and
then I'm going to say details takes you the text.
And now here is the challenge that we having here.
I want to see several lines of text.
So let's see how we can do that.
I'm going to go ahead and say sit the column let's say Vancouver and then I want to immediately go to
the next line.
So I have to save forward the slash and that is essentially every turn that takes me to the next line
and say whether it's raining.
It always is then I'm going to say twice.
Go to the next line.
So put two line of spaces between them and then I want to move everything a little to it's right.
So I'm going to say the slash.
And that is for tab.
So I'm going to tap the text of one tab before what I'm going to say summarize let's say are five 10
AM and then I'm going to go one line down one tab and say sunset a 10 p.m..
Now I know this might seem a little bit weird right now but let's see the result in the simulator and
they can you know make more sense to us.
Go ahead and build and run the application and wait for a simulator to load.
This is my simulator.
And then in the simulator as you can see the moment it loads up I have the name label up there that
the text says Amir J.
And then I have this city Vancouver and then immediately we go through a mixed line.
It's very rainy and then we go to the next line.
So we get leave two lines of gaps that we reach here and then we have one top that pushes everything
forward and we write sunrise or whatever and then we go through the next line which ends up here where
my mouse pointer is now.
And then one more time.
Which brings us again to where sunset's begins.
And then we have another text as you can imagine.
This is obviously not the most intuitive way of editing text.
Imagine if you wanted to write either a 20 different pieces of information about the city.
This would be quite difficult in saying that understanding how you would add elements into the text
and how you concatenates that is the term used for having the pieces of text through each other.
That's quite important.
And I would actually encourage you to expand on this up and adds more detail so you kind of get a sense
of you know the different things that can happen.
Maybe you want to put the sunrise and sunset at a section called times and then add another section
so you kind of get yourself a better sense of how you would do something like this in a much longer
way obviously a more difficult way.
And later on down the track you will learn easier ways of doing essentially the same thing.
But for now that's kind of what we wanted to see and everything is working the way you want it.
So let's keep it up to here and we'll move on to our next lesson.