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

iOS presentViewController 之后设置界面透明

2016-04-15 11:59 357 查看
if ([[[UIDevice
currentDevice] systemVersion]
floatValue]>=8.0) {

web.modalPresentationStyle=UIModalPresentationOverCurrentContext;

}else{

web.modalPresentationStyle=UIModalPresentationCurrentContext;

}

[self
presentViewController:web animated:NO
completion:^{

}];

加上这句代码就可以了
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: