开发者

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 subclas开发者_开发知识库s but i don't know how to do it.

Something like this:

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


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];
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜