If you are using the storyboard layout, and the use of the system's return button, it will automatically have a sliding back effect, but I believe you do the project, is generally used by the custom return button, so I paste a few lines of code to see how to implement the system comes with the sliding back.
First, create a custom return button, and then add the
[self.navigationItem setLeftBarButtonItem:backBarItem];
And then
- (void) Viewwilldisappear: (BOOL) Animated {[Super viewwilldisappear:animated];Agent is empty, otherwise it will flash backif ([Self. Navigationcontroller Respondstoselector:@selector (Interactivepopgesturerecognizer)]) {Self. Navigationcontroller. Interactivepopgesturerecognizer. Delegate =Nil;}} - (void) Viewdidappear: (bool) animated {[ super viewdidappear:animated]; //open iOS7 slide return effect if ([self.navigationcontroller respondstoselector: @selector ( Interactivepopgesturerecognizer)] {//only valid on level two page if ([self.navigationcontroller2) {self .navigationcontroller.interactivepopgesturerecognizer< Span class= "hljs-variable" >.delegate = self;}}
iOS gestures (swipe) return implementation (custom Back button)