Reputation:
I have to make an app for iPad which requires a UISplitViewController
- like view but with extra navigation bars on the top. Unfortunately, the native UISplitViewController
does not have support for this. As an example of what I want, consider the apple documentation site which looks like:
But what UISplitViewController
offers is a part of it (Master-Detail controllers only):
So my question is: What is the best way to do this? Should I subclass UISplitViewController
(which, I'm a little less confident of) or should I use loadNibNamed:
or is there some open-source project out there?
Edit I need to put images, buttons and a search-bar in the extra top bar.
Upvotes: 0
Views: 1483
Reputation: 1232
I've recently developed a library and published on gitHub for IOS devices both iPhone and iPad. It's act like an UISplitViewController but there ara more customization option that you can use. https://github.com/ytur/USController
Upvotes: 0
Reputation: 57060
What you need it MGSplitViewController
. It allows you to push the split view controller inside a navigation controller.
You can also accomplish what you require by digging in the view hierarchy and planting your view there, but MGSplitViewController
would be more elegant.
Upvotes: 1