I use this code to execute a custom segue when a user logs into the application:
dispatch_async(dispatch_get_main_queue()){ self.performSegueWithIdentifier("showSTPS", sender: self) }
I currently have this code in my perpareForSegue (I'm not quite sure if I need it)
override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?){ if "showSTPS" == segue.identifier { } }
And every time I try to execute segue, I get the following error:
2015-08-31 11: 56: 28.998 ICEFLO [3858: 651041] *** Application terminated due to an uncaught exception "NSInternalInconsistencyException", reason: "Failed to execute segue with identifier" showSTPS ". Segue must either have performHandler, or he must override -perform. '
Any suggestions on what to do will be greatly appreciated - note that this is for swift2 / ios9
-Yogi
source share