我需要在按下 UIButton 时打开 ViewController,为此我使用以下代码:
NSString * storyboardName = @"Main";
UIStoryboard *storyboard = [UIStoryboard storyboardWithName:storyboardName bundle: nil];
UIViewController * vc = [storyboard instantiateViewControllerWithIdentifier:@"ViewController"];
[self presentViewController:vc animated:YES completion:nil];
当它走最后一条线时
[self presentViewController:vc animated:YES completion:nil];
它给了我以下错误:
-[UIView setShowsFPS:]:无法识别的选择器发送到实例 0x9bd5610 2013-07-16 14:40:52.728 ChainZoo[3026:a0b] *由于未捕获的异常“NSInvalidArgumentException”而终止应用程序,原因:'-[UIView setShowsFPS:]:无法识别的选择器发送到实例 0x9bd5610'
有人知道错误吗?提前致谢!!