_profileVC.modalPresentationStyle=UIModalPresentationOverCurrentContext; //设置过后再设置页面的透明度
_profileVC.view.backgroundColor = RGB(244, 243, 243, 0.4);
_profileVC.view.superview.backgroundColor = [UIColor clearColor];
[self presentViewController:_profileVC animated:YES completion:^(void){
}];
本文详细介绍了如何在iOS应用中设置模态弹窗的背景颜色和透明度,包括使用`_profileVC.modalPresentationStyle`设置显示方式以及调整`view.backgroundColor`实现透明效果。

8662

被折叠的 条评论
为什么被折叠?



