Re: Segue


Gerriet M. Denkmann
 

On 19 Sep 2018, at 20:35, Steve Mills via Groups.Io <sjmills=mac.com@groups.io> wrote:

On Sep 19, 2018, at 05:14:11, Gerriet M. Denkmann <g@mdenkmann.de> wrote:

I have an UITableViewController and the UITableViewCells have a Detail Accessory with an accessory action = Navigation Controller Show Detail

The UITableViewController does prepareForSegue.

The Storyboard Segue is of Kind Show Detail (e.g. Replace) and it Animates.

But: the Detail View slides in from *below* (expect: from right); sliding the Detail View from left to right does *not* get back to the UITableViewController and on top there is no “< Master” button which does the same.
Perhaps you just need to provide a custom transition animation. See this guide:

https://developer.apple.com/library/archive/featuredarticles/ViewControllerPGforiPhoneOS/CustomizingtheTransitionAnimations.html
The Xcode template Master-Detail App does it without custom transition animation.

It uses: Master : UITableViewController → UINavigationController → Detail : UIViewController

Detail slides in from right, and the user can remove the topmost view controller using the back button in the navigation bar or using a left-edge swipe gesture.


The only way I got it to work:
Master : UITableViewController → Detail : UIViewController
Storyboard Segue Kind = Show (e.g. Push)

Transition Style and Presentation of Master seems to have no effect.

Gerriet.

Join cocoa@apple-dev.groups.io to automatically receive all group messages.