I know there are tons of projects, I searched in https://www.cocoacontrols.com/ and found some very interesting, like MasterDetailController
, that is the simlpest one and I got working very good.
But now I have a problem, and probabbly you can help me with another cool and simple slide control, or just a matter of simple tweak of current control or coding.
The main issue is that the MasterDetailController
must be set on self.window.rootViewControler = self.principal;
/* THIS IS THE APPDELEGATE */
// This is the slide menu view controller
UIViewController *master = [[UIViewController alloc] initWithNibName: @"MasterView" bundle: nil];
// This is the body view controller
ViewController *detail = [[ViewController alloc] initWithNibName: @"ViewController" bundle: nil];
// This is the Master detail controller 'driver'
self.principal = [[[MasterDetailController alloc] initWithMasterViewController: master detailViewController: detail] autorelease];
// Then we set the 'driver' as rootView
self.window.rootViewController = self.principal;
[self.window makeKeyAndVisible];
Now, I want more ViewControllers
to have the slide menu like facebook app
not just the rootViewController
.
So, how can I do it?
Thanks.
PS: This is the control I am currently using https://www.cocoacontrols.com/controls/masterdetailcontroller