iOS_ 摸推背景透明效果
来源:互联网 发布:亿程旅行社 知乎 编辑:程序博客网 时间:2024/05/22 14:01
ScreenListVC * screenList = [[ScreenListVCalloc]init];
if ([[[UIDevicecurrentDevice]systemVersion]floatValue]>=8.0) {
screenList.modalPresentationStyle=UIModalPresentationOverCurrentContext;
}else{
self.modalPresentationStyle=UIModalPresentationCurrentContext;
}
[selfpresentViewController:screenListanimated:YEScompletion:^(void){
screenList.view.superview.backgroundColor= [UIColorclearColor];//背景色透明
if ([[[UIDevicecurrentDevice]systemVersion]floatValue]>=8.0) {
screenList.modalPresentationStyle=UIModalPresentationOverCurrentContext;
}else{
self.modalPresentationStyle=UIModalPresentationCurrentContext;
}
[selfpresentViewController:screenListanimated:YEScompletion:^(void){
screenList.view.superview.backgroundColor= [UIColorclearColor];//背景色透明
}];
看代码就行吧, 应该不用是说 啥, 我感觉我发的东西都挺简单的, 大牛什么的有别的想法可以留下你们的地址, 让小弟也学习学习,
0 0
- iOS_ 摸推背景透明效果
- surfaceView背景透明效果实现
- C# 透明背景Panel, 透明图像, PitureBox透明效果
- CSS实现PNG图片背景透明效果
- 兼容浏览器的背景透明效果
- Android 状态栏背景模糊透明效果实现
- Android背景设置透明和半透明效果
- [easyx游戏开发]---实现透明背景效果
- 文字背景透明色渐变效果
- Android 头像透明背景不透明效果
- 透明效果,可以设置透明值,做背景
- iOS_使用UIBezierPath对象实现视图控件的立体阴影效果和半透明背景效果
- iOS_自定义毛玻璃效果
- iOS_转场效果
- Flex中如何将灰色背景设置为透明效果
- positon 总结之登入背景玻璃透明效果扩展
- CSS实现背景透明/半透明效果 但内容文字不透明
- viewpager滑动背景透明效果渐变(引导界面滑动)
- Spring、Spring事务详解;使用XML配置事务
- POJ 1144 Network (Tarjan求割点)
- poj 1422 Air Raid(最小路径覆盖)
- poj 3984 迷宫问题【BFS && DFS】【简单】
- js 实现倒计时
- iOS_ 摸推背景透明效果
- HDOJ--1827--Summer Holiday(强连通分量的最小代价连接)
- coreGraphics绘图
- spring获取数组参数(二)
- Cocos-2d js 多个精灵都调用同一个动作 执行不成功(加“.copy()“)
- 第12周-Microwave面板图形界面基础
- Joda-Time 简介
- 关于mfc 对powerpoint的操作,控制ppt播放
- 优化sql 语句的几种方式