Split View, combine master and detail view in Tab Bar Controller?

Hi,


I´m using a Spit View, and are also trying to use a Tab Bar Controller. Is it possible to have the same Tab Bar Controller in both the Master View Controller and Detail View Controller? I have successfully added a Tab Bar in the Master, but when it segues to the detail View, the Tab Icon is´nt there.

Is it possible to combine this?

Accepted Reply

>combine master and detail view in Tab Bar Controller


That's ok.


>Is it possible to have the same Tab Bar Controller in both the Master View Controller and Detail View Controller?


That's not advised.


See this doc on 'Combined View Controller Interfaces : Order of Containment':

https://developer.apple.com/library/prerelease/ios/documentation/WindowsViews/Conceptual/ViewControllerCatalog/Chapters/CombiningViewControllers.html "

Replies

>combine master and detail view in Tab Bar Controller


That's ok.


>Is it possible to have the same Tab Bar Controller in both the Master View Controller and Detail View Controller?


That's not advised.


See this doc on 'Combined View Controller Interfaces : Order of Containment':

https://developer.apple.com/library/prerelease/ios/documentation/WindowsViews/Conceptual/ViewControllerCatalog/Chapters/CombiningViewControllers.html "

Why do you want have the Tab bar in both ? I'm not sure I understand what you waant.


There is an interesting Stanford course on this topic: look for lecture 6 (6. Multiple MVCs, Segues, FaceIt, and View Controller Lifecycle).

Note You must access from an IOS device on iTunes U.

This is for IOS9, but principles are the same.

h ttps://itunes.apple.com/us/course/developing-ios-9-apps-with-swift/id1104579961

I just thought it vould be nice to have access to the tab bar from anywhere in the app. But, it´s no big deal. I have implemented it in the detailView.


-Thank you