Hey everybody what's going on this is Caleb with Def slopes dot com and welcome to the UI split view
controller target topic in this Target topic.
We're going to learn how to use a UI split view controller which is a pretty common way of creating
master detail type applications with a table view and view controllers that load when those particular
cells are selected.
So for instance this is the app we're going to build called splitter.
And I named it that because you know you guys have controller blah blah blah.
Anyway so we have a table view here with you know a few cells and each cell is for a different image.
Now when I click on a cell it opens up a view controller that shows that image.
OK so I can go back and this is kind of how you would expect a table view to work with a UI navigation
controller.
But the cool thing is that this is not just a table view.
If I rotate the device you'll see that we can see both the table view and the supporting View Controller
at the same time.
Check it out.
See I can select an image and the image will appear in its related View Controller.
Super cool stuff.
And there's also this full screen button here which if I click it it's going to go ahead and load that
image up in full screen.
Now if I rotate back whoops wrong way if I rotate back it's going to just simply show the regular view
controller that you would expect.
Pretty cool.
Now of course I can go back and I can select another one here rotate and I can go back to show the view
controller on the side.
Pretty awesome.
This is a great way to add functionality into your app if you think of like the iOS settings app it
uses this and I'll have you notice as well that I'm running this on an iPhone a plus because it has
the bigger screen size.
Usually I split view controller apps are on the iPad but if an app is built with a split view controller
you can access it on an iPhone.
A plus as well.
Now if you were to simply run this app on an iPhone 8 For instance you would not get the UI split view
controller.
So it's only going to work on devices with a regular width and an iPhone 8 does not have a regular with
or height.
So we're going to go ahead and build this app it's pretty cool.
Pretty cool concept to be able to load up a UI view controller as well as show both in the same view
if the screen is big enough.
Pretty awesome stuff so I don't know about you but I want to dive into building this.
So let's head over to the next video where we're going to import all of the graphical assets like the
images we're going to set up some dummy data and we're also going to explore something in the app delegate
after we create our project so Acia there.