Basically this is my situation and don't want to use splitview. I've a viewbased app, on a side of the main view i've to show a viewcontroller subclass but i don't know how to do it.
Something like this:
Even though Apple doesn't recommend it (at least on the iPhone), you can always access the view controller's view and manually add it. Like this (in MainViewController.m):
[self.view addSubView:self.secondaryViewController.view];
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.