I am trying to find out what the difference is between a custom UIStoryboardSegue
and a custom UIViewcontroller
transition (introduced in ios7).
What are the differences and different use cases for both? As far as I can tell they are both used for custom moves to new controllers.
Possibly the UIViewcontroller
transitions are used more for a controller that is only shown and will some point be dismissed, whilst the segue is a complete move and not necessarily a back?
Custom Segues
UIViewControllerTransitioningDelegate Protocol Reference
segue
encapsulates the action such as [vc1 push:xxx] or [vc1 presentModal:xxx], it is a convenient way to present v2 from v1 with default transition(push, modal) defined, you don't need to write such code, but just call [self performSegueWithIdentifier:xxx]. And In my opinion, the transition delegate allows you to custom the animation effect.self performSegueWithIdentifier
as suggested but then use a custom transition for the animation.