程序运行时,点击按钮从第一个界面跳到第二个界面时,错误退出了。
错误如下:
Cannot find executable for CFBundle 0x8ed2730 </Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk/System/Library/AccessibilityBundles/CertUIFramework.axbundle> (not loaded)
2014-08-07 11:24:09.176 Wow1[1744:60b] -[UIViewController setText:]: unrecognized selector sent to instance 0x8dbfff0
2014-08-07 11:24:09.179 Wow1[1744:60b] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UIViewController setText:]: unrecognized selector sent to instance 0x8dbfff0'
解决办法:是因为要Push出的视图没有将它的Class设定为控制它的视图控制器SecondViewController。详细为:将storyBoard中的视图控制器SecondViewController选中,在identity inspector下的Custom Class里设定为SecondViewController。