iOS 7 navigationController navigation back error-Collection of common programming errors

so when i call a button function and that push a new view in the navigation.

[self.navigationController pushViewController:newviewcontroller animated:YES];

however, if i swipe the view back before it slide to the left. it will crash the app with the following message:

nested pop animation can result in corrupted navigation bar

Finishing up a navigation transition in an unexpected state. Navigation Bar subview tree might get corrupted.

here is my code for connecting the gesture with the delegate.

-(void)viewDidAppear:(BOOL)animated{

    if (SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(@"7")) {self.navigationController.interactivePopGestureRecognizer.delegate = self;}
}

apart from simply remove the line, how can i solve that issue? is that an iOS 7 bug?

can i enable the gesture after the animation’s been loaded?