首页 > 移动平台 > 详细

IOS弹出UIViewController小视图

时间:2014-07-19 00:38:17      阅读:471      评论:0      收藏:0      [点我收藏+]

在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小视图

原文:http://www.cnblogs.com/zhanggui/p/3853738.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!