首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 移动开发 > 移动开发 >

从已有View Controller下面展示新的View Controller

2013-02-24 
从已有View Controller上面展示新的View Controller当前View上再展示一个新的View并与当前View进行交互,比

从已有View Controller上面展示新的View Controller

当前View上再展示一个新的View并与当前View进行交互,比如iPhone自带的日历:

从已有View Controller下面展示新的View Controller

其实现步骤为:

    创建想要显示的View设置modalTransitionStyle属性, 设置显示的动画内容给将显示的View分配delegate调用方法 presentViewController TestViewController *tvc = [[TestViewController alloc] init]; tvc.delegate = self; tvc.modalTransitionStyle = UIModalTransitionStyleCoverVertical; [self presentViewController:tvc animated:YES completion:nil];

热点排行