In iOS 8 and later, you can use the UISplitViewController
class on all iOS devices, in previous versions of iOS, the class is available only on iPad.
UISplitViewController
is a container class like UITabViewController
, UINavigationController
. It separates the main view into two UIViewControllers
masterViewController
(PrimaryViewController) and detailViewController
(SecondaryViewController). we can send an NSArray
with two UIViewControllers
and Apple recommends UISplitViewController
as a rootviewcontroller for your application. To interact between the UIViewControllers
I use NSNotificationCenter
.