IOS8以上或以下 presentViewController 背景不透明解决办法
来源:互联网 发布:云计算与大数据 编辑:程序博客网 时间:2024/05/29 00:32
IOS8及以上,设置
nextVC.modalPresentationStyle = UIModalPresentationOverCurrentContext;
IOS8以下,设置
self.modalPresentationStyle = UIModalPresentationCurrentContext;
其中 nextVC 是要显示的ViewController, self是当前ViewController。
全部代码如下:
nextVC.view.backgroundColor = [UIColor clearColor];if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 8.0) { nextVC.modalPresentationStyle = UIModalPresentationOverCurrentContext;} else { self.modalPresentationStyle = UIModalPresentationCurrentContext;}[self presentViewController:nextVC animated:YES completion:nil];
0 0
- IOS8以上或以下 presentViewController 背景不透明解决办法
- iOS 7.0 presentViewController 背景变黑的解决办法
- PDA开发之控件背景不透明的解决办法
- CodeIgniter中PNG图片处理背景不透明问题的解决办法
- stringByRemovingPercentEncoding 对空字符对象的转化在ios8以下为nil,ios以上为@“”
- 背景透明,字不透明
- 背景透明,文字不透明
- 背景透明文字不透明
- 背景透明文字不透明
- 背景透明 文本不透明
- 背景透明文字不透明
- 背景透明,文字不透明
- flash在ie下面,加了transparent,背景仍不透明的解决办法
- css背景透明 字体不透明
- 实现背景透明,文字不透明
- html 背景透明文字不透明
- css 透明背景 文字不透明
- 实现背景透明文字不透明
- mysql安装出现error Nr.1045
- 第十五周项目二——用哈希法组织关键字
- 使用了fresco和recylerView的下拉刷新的Apk
- 第十六周项目1-(3)验证算法冒泡排序
- 【Leetcode】19. Remove Nth Node From End of List
- IOS8以上或以下 presentViewController 背景不透明解决办法
- qt常用的基本属性设置
- 三维点云拼接 标记点拼接 SVD分解法
- js $.each用return 后为什么后面的js还可以执行
- Microsoft Office Professional Plus 2007 简体中文版
- 第十六周项目7—基数排序
- 用font-spider释放字体文件大小,只取所需!
- 避免同一activity下 多个fragment 切换时重复执行onCreateView方法
- Java中的XML