Splitview with multiple detail views using storyboarding. Seen an example/tutorial?

11,460

Solution 1

Try to read this article:
Science At Hand - Adventures in UISplitViewController

I found it very interesting.

Update: Link is dead, here is link from archive.org

Solution 2

Although this is an old thread, I've created a Storyboard and ARC-enabled version of Apple's MultipleDetailViews sample code, as per the OP's original request: public git repo

Solution 3

I was searching for something similar for Swift, but didn't find anything. After trying a few times and reading some blog posts and documentation, I could do it myself. Here is my Blog Post with the explanation and here is complete working code. Also this is Universal project which uses Adaptive segues and works well for both iPhone and iPad.

Share:
11,460

Related videos on Youtube

That Guy
Author by

That Guy

Updated on June 04, 2022

Comments

  • That Guy
    That Guy about 2 years

    I'm trying to track down an example like Apple's MultipleDetailViews sample for UISplitViewController, but using storyboards. Their sample code provides functionality similar to what I'm after, I'm just having trouble getting it to work in my app that uses storyboards. It's driving me nuts!

    Anyone seen an example/tutorial?

    This is Apple's non storyboard version: http://developer.apple.com/library/ios/#samplecode/MultipleDetailViews/Introduction/Intro.html

  • Dov
    Dov over 12 years
    You might want to describe what was interesting, or what is described on that page, so someone reading your answer has a reason to try visiting the link.
  • That Guy
    That Guy over 12 years
    Thanks for this! It is an interesting article. I ended up with a solution that combined multiple XIBs and the storyboard. Possibly not the best solution but seems to be working well.
  • igofed
    igofed over 12 years
    You also can do it some easier, than in this article. You can use existing manual, link you posted. But instead of using "initWithNibName" use "self.storyboard instantiateViewControllerWithIdentifier:@"New detail view Identifier"]; It's only one change you need to do with Apple's example
  • Paul
    Paul over 12 years
    What I wasn't sure about from the article is how to make it work without the TabView. I am trying to track down exactly the same as the OP.
  • Sanandrea
    Sanandrea over 9 years
    Hi your code works like charm, I have a question: How do I change the barbuttonitem text so it displays the title of the viewcontroller. Now it is always "Master". I would like to have it like 'Notes' app of Apple :) where the title is always "Notes" and not "Folders". Thank You!!!
  • Sachin Palewar
    Sachin Palewar over 9 years
    @Sanandrea 'Master' as backbutton item appears only in iPad Portrait mode, I guess. It's title of first navigation controller, which I have set as 'Master' in storyboard.
  • Sanandrea
    Sanandrea over 9 years
    Yes, in the meantime I found it. I always get confused with navigation titles, as the two master view controllers have their own but also the navigation controller that hosts them :). Thanks
  • Ronak Chaniyara
    Ronak Chaniyara about 8 years
    Link you provided is dead...it's better to add some important code with answer, not just a link@igofed
  • Keenan
    Keenan over 7 years
    Link is dead. It's usually a good idea to pull out the relevant bits from a resource so that the answer doesn't become useless if the link ceases to exist.