IOS弹出UIViewController小视图

在TestViewController1中弹出TestViewController2

 

 在TestViewController中点击按钮或者什么触发方法里面写入以下代码

TestViewController2 *test2 = [[TestViewController alloc] init];

 

UINavigationController *nav = [[UINavigationController alloc] initWithRootViewController:test2];

[nav setModalPresentationStyle:UIodalPresentationPageSheet];

 

[self presentViewController:nav animated:YES completion:nil];

IOS弹出UIViewController小视图,布布扣,bubuko.com

IOS弹出UIViewController小视图

上一篇:开源 免费 java CMS - FreeCMS1.9 积分记录


下一篇:spring mvc @ResponseBody http报错406