开发者

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

开发者 https://www.devze.com 2023-04-11 12:55 出处:网络
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.

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

精彩评论

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