Reputation: 379
In iOS 7 Apple add new default navigation behavior.
You can swipe from left border of the screen to go back on navigation stack.
But in my test project, this behavior seems doesn't work. I've check it for many times and tried the following blog
http://keighl.com/post/ios7-interactive-pop-gesture-custom-back-button/
Actually it works, but I have to swipe from the very left of the screen, so I made a mistake, can we optimize it?
Upvotes: 0
Views: 500
Reputation: 3786
Were you using the simulator? its harder to do there than on real devices.
I wouldn't recommend changing how this gesture works, it should be uniform between apps to be useful.
Upvotes: 0
Reputation: 944
You haven't write any code in your project and for navigation behaviour you must add UINavigationController to your project. please put proper link or proper code here.
Upvotes: 0
Reputation: 1206
Add this code in your Appdelegate.m file and pop gesture will work in your whole application. Also add the UIGestureRecognizerDelegate in your Appdelegate.h file.
self.navigationController.interactivePopGestureRecognizer.delegate = self;
self.navigationController.interactivePopGestureRecognizer.enabled = YES;
Swipe from the very left end of the screen, only then the pop gesture will work
Upvotes: 2