2

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

That Guy
  • 460
  • 1
  • 7
  • 17

3 Answers3

6

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

hillmark
  • 807
  • 8
  • 22
4

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

igofed
  • 1,402
  • 1
  • 9
  • 15
  • 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. – Dov Nov 29 '11 at 17:57
  • 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. – That Guy Dec 01 '11 at 01:42
  • 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 – igofed Dec 01 '11 at 11:51
  • 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. – Paul Feb 24 '12 at 16:16
  • 1
    Link you provided is dead...it's better to add some important code with answer, not just a link@igofed – Ronak Chaniyara May 03 '16 at 08:32
  • 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. – Keenan Dec 28 '16 at 02:31
1

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 complete working code. Also this is Universal project which uses Adaptive segues and works well for both iPhone and iPad.

Ryan M
  • 18,333
  • 31
  • 67
  • 74
Sachin Palewar
  • 478
  • 4
  • 15
  • 1
    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!!! – Sanandrea Feb 20 '15 at 21:33
  • @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. – Sachin Palewar Feb 23 '15 at 09:30
  • 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 – Sanandrea Feb 23 '15 at 09:45