开发者

How to get an additional toolbar at bottom of UISplitViewControllers root controller?

When using the standard UISplitViewController setup, there's a toolbar/navigation bar at the top of the left panel. I would like to add an additional tool开发者_如何学Cbar at the bottom and tableview in the middle, which is managed by the navigation controller. Can anybody point my to an example?

Info: I'm using IB.

Thanks.

René


The "easy" way to accomplish this is to create a parent ViewController, housing a subview (your current UISplitViewController), and at the bottom of that VC place your toolbar.

If the events need to be passed from the toolbar to the VC, this would best be accomplished using Events and wiring the two together in the newly created parent ViewController.

Optionally, you could create a toolbar in code and add it to the detail view (or even the parent UISplitViewController as an overlay) with the .Add or .AddSubView - just be sure to set the proper frame. This might potentially overlay real estate on the detail view, so you'd want to adjust the frame there as well so that you can access all of the view.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜