您的位置:首页 > 移动开发 > IOS开发

iOS presentViewController背景色透明

2015-09-24 05:17 483 查看
废话少说:presentViewController背景色透明。

ShowResultsViewController *vc = [ShowResultsViewController new];
vc.passDict = dict0;
vc.view.backgroundColor=[UIColor colorWithWhite:0 alpha:0.4];
//关键语句,必须有
vc.modalPresentationStyle = UIModalPresentationOverFullScreen;
[self presentViewController:vc animated:YES completion:^(void){
vc.view.superview.backgroundColor = [UIColor clearColor];
}];
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: