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];//
背景色透明
}];
看代码就行吧, 应该不用是说 啥, 我感觉我发的东西都挺简单的, 大牛什么的有别的想法可以留下你们的地址, 让小弟也学习学习,
* 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];//
背景色透明
}];
看代码就行吧, 应该不用是说 啥, 我感觉我发的东西都挺简单的, 大牛什么的有别的想法可以留下你们的地址, 让小弟也学习学习,
相关文章推荐
- iOS_动画方法以及过渡效果
- iOS 切图规范
- ios数组基本用法和排序
- iOS_常用宏定义汇总
- iOS开发使用自己添加的字体
- ios测试基础四:crash日志分析
- ios 剪裁图片
- 仿ios分段选择器(自定义radiogroup)
- iOS_数据持久化
- iOS开发获取电池电量
- iOS日期的比较
- iOS开发中数据持久化方案小结
- iOS-----使用addressBook管理联系人之修改联系人
- iOS提交后申请加急审核
- xcode7/ios9中 低版本app运行时,屏幕上下出现黑边的问题
- 成为合法的苹果开发者
- cocoaPods做iOS程序的依赖管理
- Foundation框架之 NSString 和 集合
- iOS相册图片的选取与设置
- iOS_一些简单地功能代码