Monday, April 23, 2012

iOS Storyboards tying me in knots

So I was wondering whether would it make sense to have a reciprocal segue when navigating down a hierarchy of categories of unknown depth in ios5?  I was thinking that the iOS navigation controller should provide the back button stuff etc., but it seems like if I was setting this up in a storyboard then I need to keep on seguing over and over again to the same controller displaying the current list of categories ...

After some help from iphonedev on irc.freenode.net I wasn't able to create a segue from one viewcontroller to itself, but I was able to make a seque to a clone of that view controller (Option Key drag to copy out of the left hand list view of items, thanks Psy) and I got the convoluted hook up pictured here.  Seems remarkably unDRY, but it works and I can now navigate up and down the category hierarchy with the navigation controller handling the back button to get back up again as necessary.

3 comments:

Sam Joseph said...
This comment has been removed by the author.
Sam Joseph said...

okay, so apple responded to my bug report saying that it was a replicate of an existing one. Would be nice to be able to browse the existing list so I could avoid effort re-submitting when I find an issue

Brychrwol said...

That sounds like another bug report waiting to happen!