显示一个透明背景的ViewController在另一个ViewController上
2012-10-26 10:59 三戒1993 阅读(262) 评论(0) 收藏 举报 FirstViewController.m
UIViewController *vc = [SecondViewController init];
vc.view.backgroundColor = [UIColor clearColor];
self.modalPresentationStyle = UIModalPresentationCurrentContext;/*设置这个属性背景就是透明的,而不是黑色的了*/
[self presentModalViewController:vc animated:NO];
版权声明:本文为博主原创文章,未经博主允许不得转载。
浙公网安备 33010602011771号