今天写项目时遇到一个问题,就是present一个页面的时候


解决办法:
给vc.view设置clearcolor颜色,然后 在vc.view上添加一个view 设置你要的透明度。



UIViewController *vc = [UIViewController new]
vc.modalPresentationStyle = UIModalPresentationCustom;
[self presentViewController: vc animated:YES completion:nil];
网友评论