开发者

Add toolbar at the bottom of UISplitView based iPad app

开发者 https://www.devze.com 2023-03-02 19:37 出处:网络
I have created UISplit view based application. Both, master(root) and开发者_C百科 detail views are navigation based (UINavigationController). Now I want to add a bar (probably UIToolbar) at the bottom

I have created UISplit view based application. Both, master(root) and开发者_C百科 detail views are navigation based (UINavigationController). Now I want to add a bar (probably UIToolbar) at the bottom of both views. On this bottom bar I want to keep few buttons like Home, favorites etc.

As of now, nothing is pushed on the root view side. Just to add, RootViewController is inherited from UIViewController with UITableView in it. But on the detail side, we keep on pushing other views on its navigation controller.

I would like the bottom bar to be visible all the time i.e. when other view controllers are pushed on their respective navigation controllers.

Please suggest how to go about this. Thanks.


I couldn't find a proper answer. But as a workaround, I added UIToolBar at the bottom of each view in xib with same set of bar buttons and provided the same functionality everywhere.


See my answer to this question and adjust to put your UIToolbar at the bottom instead of top.

0

精彩评论

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

关注公众号