Yes! There is a way of using the backBarButton with a custom action.
No, it’s not by overriding the backBarButton property of navigationItem.
This is not an ugly solution with images that simulate the
“Back”-button (arrow-shaped.) It’s possible to use the backBarButton for
popping the current viewController as normal, but than with other
animations such as UIViewAnimationTransitionCurlDown.

Enough said, the solution is simple. You have to subclass your
navigationController’s  popViewControllerAnimated:(BOOL)animated. So
create a custom navigationController:

customNavigationController.h

And a custom “popViewControllerAnimated:(BOOL)animated”, this
popViewControllerAnimated-function uses the
“UIViewAnimationTransitionCurlDown” when popping from a
SettingsTableView.

customNavigationController.m

Use your custom navigationController in your appDelegate:

Leave a Reply

电子邮件地址不会被公开。 必填项已用*标注