【发布时间】:2016-09-20 06:57:07
【问题描述】:
我在Main.Storyboard 中有两个ViewControllers,入口点ViewController 有绿色背景,另一个是红色背景。在第一个ViewController 的按钮单击时,它应该显示第二个ViewController,但第一个和第二个ViewControllers 相互重叠,并且两个ViewControllers 按钮都是可点击的。
Ist 视图控制器(绿色),宾果是UIButton
第二个视图控制器(红色),你好是UIButton
在第一个视图控制器中按钮的单击事件是:
MViewController *mvc = [self.storyboard instantiateViewControllerWithIdentifier:@"mvc"];
[self presentViewController:mvc animated:YES completion:nil];
【问题讨论】:
标签: ios objective-c iphone uiviewcontroller uibutton