Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UISplitViewController - Use as slideout-style menu

I'm struggling a bit with the new UISplitViewController in iOS 8.

I want to achieve a slideout-style menu on iPhone (landscape and portrait) as well as on iPad in portrait orientation and a persistent sidebar on iPad in landscape orientation.

I got a UITableViewController as the master and a UINavigationController with a couple of UIViewControllers as the detail in my SplitViewController.

Is it possible to to get something like this with the new UISplitViewController in iOS 8? First it would be enough the get the iphone sliding thing to run :D

Thank you :)

like image 275
strnmn Avatar asked May 29 '15 20:05

strnmn


1 Answers

The UISplitViewController will do just that. Sliding menus and everything.

It works like a dream if you use it exactly by the book. And this requires setup of some UINavigationControllers as part of the magic.

Tutorial is highly recommended for the first time. It's easy to get it messed up quickly otherwise. :)

http://nshipster.com/uisplitviewcontroller/

like image 176
Mikael Hellman Avatar answered Sep 28 '22 10:09

Mikael Hellman