This solution worked for me, and I think it is common practice to add this to the program.
one)
First add the BOOL property to your .h appDelegate application file
@property (nonatomic) BOOL animatingViewControllerTransition;
Also use UINavigationControllerDelegate :
@interface Your_AppDelegate : UIResponder <UIApplicationDelegate, UINavigationControllerDelegate>
Set Your_AppDelegate as the UINavigationController delegate to application:didFinishLaunchingWithOptions: your app appDelegate:
((UINavigationController *)self.window.rootViewController).delegate = self;
2)
Now add this UINavigationControllerDelegate method to the .m file of your appDelegate:
- (void)navigationController:(UINavigationController *)navigationController didShowViewController:(UIViewController *)viewController animated:(BOOL)animated {
3)
Finally, add the following code whenever you go
- (BOOL)shouldPerformSegueWithIdentifier:(NSString *)identifier sender:(id)sender {
Hope this helps solve the crash issue.
Pushparaj
source share