线程 1:EXC_BAD_INSTRUCTION 使用 UIButton
Thread 1: EXC_BAD_INSTRUCTION using UIButton
在我的应用程序中,我同时使用情节提要和直接编程。
在一个视图上,我想使用编程方式的 UIButton 转到另一个视图
这是代码
func QuitView(sender:UIButton){
self.presentViewController(FirstViewController(), animated: true, completion: nil)
}
错误是:
Thread 1 exc_bad_instruction (code=exc_i386_invop subcode=0x0) error
在黑暗中疯狂拍摄,但看起来您正在尝试 return 第一个视图控制器,self.dismissViewController(animated: true)
在我的应用程序中,我同时使用情节提要和直接编程。 在一个视图上,我想使用编程方式的 UIButton 转到另一个视图 这是代码
func QuitView(sender:UIButton){
self.presentViewController(FirstViewController(), animated: true, completion: nil)
}
错误是:
Thread 1 exc_bad_instruction (code=exc_i386_invop subcode=0x0) error
在黑暗中疯狂拍摄,但看起来您正在尝试 return 第一个视图控制器,self.dismissViewController(animated: true)