Pyae Phyoe Shein
Pyae Phyoe Shein

Reputation: 13787

iOS swipe left to right to previous page with gesture effect example

Currently, I did when user go back previous page they have two options to do. 1. Click back button 2. Swipe left to right

Both function called following code to go back previous page.

[self.navigationController popViewControllerAnimated:YES];

But my client want gesture effect which is included in iOs7 onward as per following image. Please let me know how to solve that feature.

enter image description here

Upvotes: 0

Views: 792

Answers (1)

Duncan C
Duncan C

Reputation: 131408

The easiest way is to use a UIPageViewController. However that is a different form of navigation than pushing/popping onto a navigation controller.

If you want to trigger pushes/pops you will need to attach a pan gesture recognized to your view, and then implement a custom view controller transition.

Upvotes: 1

Related Questions