libc++abi.dylib: terminate_handler unexpectedly threw an exception
这是我改bug的时候遇到的一个问题,我这个问题的原因是 整个app用了两个storyboard 然后跳转的时候用的secondstoryboard 跳到 Mainstoryboard中 出现错误
附上源码
// resView = self.storyboard?.instantiateViewControllerWithIdentifier("payResultView") as! PayResultViewController
//修改后的代码 页面是在second里面的
let storyboard = UIStoryboard(name: "Main",bundle: nil)
resView = storyboard.instantiateViewControllerWithIdentifier("payResultView") as! PayResultViewController