what's up guys this is farce tonight
welcome to items Ernie episode 15 where
I take you along my development journey
from zero to act now we're going to be
going over creating a party Rock mansion
app there's a lot of content in this we
create the UI we make sure it's you know
the auto layout it's all good the
constraints are well we go over
everything that has to do with the UI
and just kind of basic UI really but
it's you know takes a little bit effort
to make sure that some all devices and
after that we do it we basically make a
feed where it's a feed of YouTube videos
so we're gonna have to make a feed make
a table view with all the cells make
sure we're gonna hard code the YouTube
videos into the cells and whatnot so
it's not going to be pulling data and
we're not going to use an API or
anything like that but we are going to
be embedding YouTube videos into our
application so there's a lot of content
we'll go through as much as we can today
I'll find a good you know ending point
and then we'll carry this out and finish
this app up next week so let's go ahead
and get to that actually before we get
to that I'd like to discuss something
real quick a lot of people were saying
how it was kind of not good practice the
way we were creating a few of the apps
before we weren't using a VC or Model
View controller if we were just making a
lot of I don't know the alternative a
lot of ID outlets route a lot of actions
we're doing a lot of different things
that didn't it wasn't good practice we
need to practice MVC but what we do in
this app is we go over MVC like we build
this app using model view controller so
better practice in this app and I'm glad
that we're going through that because as
many people pointed out that's a better
way to do it and actually I noticed
after this after we create this app the
very next one is we go over model view
controller so we kind of use it a little
bit in order to get our brains
accustomed to model view controller
without even realizing it and then once
we discuss it after we'll be like okay
that's why we did that or you know it
makes more sense to do it a little bit
you know use in these
a little bit and then discuss it just
like if you were going to class a lot of
teachers recommend you read through the
chapter first you might not understand
it but once the teacher talks about a
class then you're kind of like okay now
I remember we you know we've read I read
over that chapter and now it makes sense
that the teachers going over it
otherwise otherwise the teacher would be
going over the chapter in class and you
would be lost you wouldn't it would be
harder to pay attention and whatnot so
that's why it's good to kind of go
through what you're doing with
model-view-controller and then we'll
discuss it after and then we'll go and
use it some more just like in class you
would read through the chapter before go
over it in class and then go back over
the chapter after if you're a good
student and if you're a good student
you're gonna learn more and that's what
we're trying to do with this we're
trying to learn more so we're going over
model-view-controller that's basically
what the whole spiel is about which is
good practice and now we're gonna go
create the UI for the party rack mansion
app and maybe into the table view and
whatnot
so let's get to it so we started off
with a single V application and we're
going to insert a UI image view in order
to have our main banner up there we're
gonna throw in the party rock mansion
graphic that we got in the udemy course
and now we're gonna throw in a regular
view this is where our buttons are going
to be so basically there are tabs we're
going to name the first top video we're
gonna make it the same colors the pink
and party rock we're going to duplicate
it twice
so we're gonna have three of them we're
gonna place those over there we're going
to name them the proper names we changed
the other two colors to a grey to show
that top videos is selected the tab top
videos are selected we're going to throw
them into a UI stack view so it's a lot
easier to space and to deal with we have
to make sure we set the proper
constraints for the UI stack view
now we enter a table view and type of
view cell inside of that we change the
background of the table view cell
because it's easier to work with we can
see the size and where the view the cell
actually is now we add a UI image view
in there this will basically be the
image view for the video so this view
this image view although it only is the
party rock mansion graphic is supposed
to represent the video and then we add
the title of the video of the music
video I guess where the Sun goes is a is
a song by the Redfoo guy that I think
his band is LMFAO pick whatever font you
want for that and then we're going to
create a view controller and we're going
to name that view controller video VC
make sure you create a file for that as
well as change the actual name of the
view controller to video VC so it all
matches up we're going to create a segue
from our previous view controller to
this one and basically this view
controller will show the video so when
you click on it it'll show the video
we're just going to throw in some UI
there and that's basically it so that's
what we're going to end it we did most
of the UI in this app next week we have
a lot of coding to do I have to redo it
I've already done it you can see some of
the code that we go through we have to
make many different files you know we
have to make a file at least one file
for Model View and controller and we go
through that there's a lot of coding
involved and next week I what to keep
the video as short as possible because I
don't like to make videos upwards of 20
minutes I feel like it's hard to sit
through it's also harder for me to edit
because it's a whole lot longer I like
to keep around ten minutes so I'll do my
best to keep it short sweet I need to
yeah I know I want to pack in a lot of
information in there and that's
basically it for this video if you
enjoyed it check out some other content
right here and if you wish to subscribe
that'll be right around here and I
really hope you do I hope to see you the
next one until then have a good one