简体   繁体   中英

iPad app, how to show a uiviewcontroller on top of an uiviewcontroller

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM