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

iOS_ 摸推背景透明效果

2015-11-17 17:29 330 查看
ScreenListVC
* screenList = [[ScreenListVC

alloc]

init];

if ([[[UIDevice

currentDevice]

systemVersion]

floatValue]>=8.0)
{

screenList.modalPresentationStyle=UIModalPresentationOverCurrentContext;

}else{

self.modalPresentationStyle=UIModalPresentationCurrentContext;

}

[self

presentViewController:screenList

animated:YES

completion:^(void){

screenList.view.superview.backgroundColor
= [UIColor

clearColor];//

背景色透明

}];

看代码就行吧, 应该不用是说 啥, 我感觉我发的东西都挺简单的, 大牛什么的有别的想法可以留下你们的地址, 让小弟也学习学习,
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: