tabs - UISplitView with toolbar/tabbar at bottom of detail view -


So here I started with the box SplitView application standard for the iPad. Route View Left and Right Detail View. Its toolbar is at the top in the wide view.

The one that I want to add, there is a tab bar below in detail and the tab loads in the details view between the Toolbar tabbar.

There is a problem here, should I add another view between the two to load the tabs, if so, how do I change it and respect the Toolbar and tabbar heights.

Clear

Hope someone can tell me in the right direction. Examples would be great, every example on the web is just getting out of the world-style box. Yes, the answer is really very simple. SplitViewControllers like UITabBarControllers were intended to be the only root view controller by the apple.

And so you can not nest a TabBarController in any other view, but you can nest to UITabBar in a scene.

I want to switch everything down to the tabbar, a navigation bar at the top and then a placeholder view among them! All in the interface builder! You want to switch everything to autosize on the placeholder view.

Next, implement the UITBBradAlaget. For this, you will need it:

  - (zero) tabbar: (UITabBar *) Tabber selected: (UITabBarItem *) item {  

You can use Item.tag, which if you give each item a unique tag in the interface builder, you will know which user clicked tab I set the value defined for me:

  #define VIEW_TAB_A 0 #define VIEW_TAB_B 1 #define VIEW_TAB_C 2   

Then you want to ... well the best I'll just see you

  - (minus) tab: (UITabBar *) Tabber selected: (UITabBarItem *) item {[self Svichtiv Views: before]; } - (Zero) Switch-up: (UITabBarItem *) Item {if (Current ViewController! = Void) {[currentViewControllerView: No]; [CurrentViewController.view removalProgressiview]; } Switch (item tag) {case VIEW_TAB_A: current working controller = self.viewA; break; Case SCAN_VIEW_TAB_B: Current Week Controller = self.viewB; break; Case PROMOTIONS_VIEW_TAB_C: Current Viewer = self.viewC; break; } UIView * aView = currentViewController.view; AView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight; AView.frame = Placeholder View.frame; [Current VCA controller viewWP: no]; [Insert self.viewSubuView: A view on topSubview: placeholder view]; If (Current ViewController! = Zero) {[View current ViewControllerDiscover: no]; } [Current VCA controller viewADAP: no]; }   

Remember to first view ideas (view, view, view) First see the loaded demo and release it clearly in the DLOK. Also keep an eye on the autoricing mask!

Hope this helps others.

Comments