I have 3 MVCs and name them A, B, C here.
A is the main MVC with a button "Menu" connected to B with popover segue.
A also connected to C with a manual show segue.
B is a popover MVC with a button "Detail" connected to A with unwind segue.
C is the detail MVC with detail info.
Inside the unwind function of A. I call performSegueWithIdentifier to show C.
Expected behavior is
- Click "Detail" button in B
- B disappear and A show up
- C show up
But running the app I got.
- Click "Detail" button in B
- B disappear and A show up
- C show up
- C disappear and A show up
C show up and disappear suddenly which is not what I want.
Some additional info
- Popover B is needed for more buttons.
- A is embeded in a UINavigationController. Connecting A -> C rather than B -> C, for a Back button on top of C.