I received the error: Thread 1, Signal SIGABRT
when I ran my app and pressed the button when I had added a custom push segue for.
Error in log:
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Pushing a navigation controller is not supported'
Here's the code for the custom segue
#import <UIKit/UIKit.h>
@interface PushNoAnimationSegue : UIStoryboardSegue
@end
@implementation PushNoAnimationSegue
-(void) perform{
[[[self sourceViewController] navigationController] pushViewController:[self destinationViewController] animated:NO];
}
@end
All outlets are accounted for and there don't seem to be any loose ones.
What's the issue and how do I fix this?