-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Navigation Helpers (dismiss, replace, unwind)
Luke Zhao edited this page Feb 12, 2017
·
1 revision
Hero provides some useful navigation extension methods on UIViewController. Use these alongside with pushViewController
, presentViewController
to navigate between view controllers.
Dismiss the current view controller with animation. Will perform a navigationController.popViewController
if the current view controller is contained inside a navigationController.
Replace the current view controller with another VC on the navigation/modal stack.
Unwind to the root view controller using Hero.
Unwind to a specific view controller using Hero.
Unwind to a view controller that responds to the given selector using Hero.
Unwind to a view controller with given class using Hero.
Unwind to a view controller that the match block returns true on.