iOS presentViewController背景色透明
2018-07-30 本文已影响0人
frola_
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];
}];
版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/Aaidong/article/details/48705121