Search code examples
iosxcodestoryboardsegueapple-watch

Why can't we use relationship segue and action segue (push) for one interface controller in Apple watch storyboard?


Problem: The cancel controller will not be show after the test button is tapped if both "relationship segue" and "action segue" (push) are connected

enter image description here

Weird behavior: The cancel controller will show after the test button is tapped only if "action segue" (push) is connected. But not the "relationship segue".

enter image description here

Question: Why is it so?


Solution

  • You didn't describe that much but please note that hierarchical and page-based navigation are mutually exclusive so you can't use both.

    "For WatchKit apps with more than one screen of content, you must choose a technique for navigating between those screens. WatchKit apps support two navigation styles, which are mutually exclusive."

    https://developer.apple.com/library/prerelease/ios/documentation/General/Conceptual/WatchKitProgrammingGuide/InterfaceStyles.html