我正在尝试使用以下代码从 viewcontrollerA 调用 viewcontrollerB:
ViewControllerB *vc = [[ViewControllerB alloc]initWithNibName:nil bundle:nil];
[self presentViewController:vc animated:YES completion:nil];
在 viewcontrollerB 我有以下代码:
SKView * skView = (SKView *)self.view;
skView.showsFPS = NO;
skView.showsNodeCount = NO;
// Create and configure the scene.
SKScene * scene = [MainScene sceneWithSize:skView.bounds.size];
//scene.scaleMode = SKSceneScaleModeAspectFit;
// Present the scene.
[skView presentScene:scene];
我收到错误:
[UIView setShowsFPS:]: 无法识别的选择器发送到实例
所以我已经阅读并实施了以下链接中写的解决方案:
但我有同样的错误。