I have a segue in an iPhone app that crashes if the initiating view controller was reached via a certain path. In those cases when I try to segue to the next screen I get:
*** Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[__NSArrayI objectAtIndex:]: index 2 beyond bounds [0 .. 1]'
It's happening after prepareForSegue returns but before the destination view controller takes over. As far as I can tell it's in system code at the time. The call stack only shows main and UIApplicationMain. I'm stumped. Has anyone seen this before?