如何使用视图控制器在多个视图之间切换(借助 IBAction)?
这是我到目前为止编写的代码:
在接口文件中我做了一个IBAction:
-(IBAction)Next;
Run Code Online (Sandbox Code Playgroud)
在实现文件中我写了这样的内容:
- (IBAction)Next
{
SecondPopovercontrol *second = [[SecondPopovercontrol alloc] initWithNibName:nil bundle:nil];
[self presentingViewController:second animated: YES completion:NULL]; // This is the step I am facing issues with
}
Run Code Online (Sandbox Code Playgroud)
我无法运行它 - 2 个视图控制器的名称是:WOMPopoverController和SecondPopovercontrol。
错误是:
“WOMPopoverController 没有可见的 @interface 声明呈现 Viewcontroller:animated:completion 的选择器”
我是 StackExchange 的新手,所以如果我的问题有任何不一致之处,请告诉我。并且,请指导我如何解决这个问题。
谢谢