So now that you have a good understanding of what the U.S. simulates really is and how you start applications
and export it it's time for us to dive into our egos and get a sense of the different files that we
have in our exclude project.
So to do that I'm going to talk about these three finalists dot H and Dot a storyboard.
Fine.
So let's jump back into school and I'm actually going to close this application and start a brand new
one so I'm going to say fine close project I'm going to say command shift and or if you remember fine.
NEW PROJECT.
I'm here I'm going to say symbol your application I'm going I keep all the previous things.
Once again if you're for forgotten a name for your organization or an identifier that you know we can
change all of these later.
I know that I know you know you unit this think and object if.
So I'm going to call this application.
My I was on the stand on this Hunding app.
Again I'm going to say within the same place as the previous one that really doesn't matter at this
point.
So so far this is something we have done before us.
I just want to get a sense of these different files that we have up here.
And what's very important for us to knowings is that up or talk to him a file is something that we will
be working on extensively.
This is essentially the foil that takes care of it.
So far this is something we've done before and now we want to get the sense of these different foils
that we have in our navigation navigation window.
So going to maximize his the zoom over there.
Now there are many many files in here and it might seem a little bit overwhelming at the beginning so
I'm only going to suggest something to you guys and that is this fun.
H fine.
I'm fine and it does a storyboard.
The main storyboard.
Not the other one.
These are essentially the only three files that you need to deal with for foreseeable future.
We will talk about app delegation and you know how to use the launcher screen for much farther in the
future maybe in about 15 seconds from now.
But these are the three files that we need to know on how you need to know how to use them.
So I'm going to show you a quick ministration you are not supposed to be following me and don't worry
if you use some you know terminologies or things that you don't know what they are.
This is just simply for the sake of they want to station.
So here I'm going to I'm going to go to my main storyboard and in my main storyboard just like the last
time I'm going to go to my library and add a label.
So I have something on my scene
that is there and then I'm going to change some of the stuff like we did last time this early lessons
I try to repeat myself more and more so you know you guys get a better sense of you know following along
with me.
Like I said this lesson in particular you're not supposed to be following it but it helps you know that
you know what's going on then.
This is our visual design.
Imagine my app only has this one label that shows my name for the very reason.
Hollis's is this file connected to the other two ones so that dot h file which is the header file essentially
is a file that connects the storyboard toward that and fine and also connects this whole set of new
controllers to other controllers.
Now if that doesn't make much sense to you don't worry about it.
All you have to know is that the h file connects these two together and that is where we actually do
the actual programming.
The logical for OP for whatever it is meant to be doing.
So not to do something very very simple and like I said you're not supposed to be you know tagging along.
You're welcome to do if you wanted to do it.
So going here I'm going to open the assistant editor.
This is something you will see down.
That's right.
Well it doesn't but it means I know I'm going to switch to my dad.
H fine.
So now in one side they have my dad age while in one side they have my storyboard and when I get my
labor my outlet in here and I'm going to my house for the name such as my name label.
Once again don't worry about what this exactly means and whether all these different you know terminology
is in here.
Non-atomic reach an outlet and what not.
All you have to know is that this label is now somehow connected to here.
So our label in the visual part of the equation is connected to our DOT H-word and if we go to our M-file
we will see that all of that amphi imports that H into it.
So somehow all three of them are not connected to each other or that M-file imports that age our storyboard
has connection to that age.
So they all kind of interconnected.
Once again I'm going to say for the third time don't worry about you know following along with me.
Just get a sense of how things are happening in here.
Now we have a view controller lifecycle here which is a view of the lot.
We'll talk about this extensively in the coming lessons.
But just so you know for now this is the method that runs every time your application loads for the
very first time.
So when you tap on the application and pops open this thing happens and whatever is in here should happen.
So here's what I'm going to do.
I'm going to say my name labor dot text should show my name.
Now again don't worry about the dog's operation and what it is that you know on score over there for
the IVR or the way that Bereuter is throwing all of these things we'll cover them in the future.
But what you should kind of understand by now is that in my main storyboard there is a label that because
it might name a label.
That same guy my name label in the dot M is being changed so that it shows my name and that happens
when the application loads.
So if all goes well if I run the application now I should get to see that label showing my name before
I build and run the application on that check that we talked about my storyboard is in iPhone 8.
So because of that I'm going to switch my simulator to iPhone 8 as well.
And then I say build and run the application and we'll see what we will get.
Once we do that here is my simulator and the application is running and is building and launching and
once it launched we should see something which is not great.
Now I'm seeing my name in here.
So this is the very very basic logic of an app that something happens on a certain you know life cycle
in this one being viewed it lot that one connects to somebody in the storyboard and then from the storyboard
we have that outlet in our age.
Now once again I should emphasize on this the goal of this lesson was needed to learn laborer's nor
outlets nor understanding how the life cycle of new controllers work.
It was just for us to understand that these three finds are the files that we depend on for kind of
the foreseeable future whenever we are developing U.S. applications.
We do our visual design the main slowly but we do our actual programming in the view or at that end
and we do all of our connections in that age.
With that in mind let's go ahead and move on to our next lesson.
We talk about these outlets and what do they mean and what the assistant window and how we can connect
different elements from our visual design to our coding environment.
So I'll see you there.