读书人

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

发布时间: 2013-02-24 17:58:56 作者: rapoo

从已有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];

读书人网 >移动开发

热点推荐