开发者

How do I add a tab bar controller to an iPad SplitView > DetailView

I have looked for the answer to this on SO, but have not found a good method yet, so I'd like to ask again.

Standard Split View controller on iPad app. I want to add a tab bar controller (with subordinate VCs) in the detail views.

IB will not let me add such a controller.

How can I ac开发者_运维知识库hieve this?

Many thanks


Construct the UISplitView programmatically, it will accept the UITabBarController. e.g.:

[splitViewController setViewControllers:[NSArray arrayWithObjects:navController, tabBarController, nil]];

Where navController and tabBarController are IBOutlet and connected to the obvious objects loaded from a nib.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜