(iOS)viewController背景透明化
2024-10-11 23:55:24
#ifdef __IPHONE_8_0 if ([EFUNKakaoCenter deviceOsVersion].intValue < ) { [UIApplication sharedApplication].keyWindow.rootViewController.providesPresentationContextTransitionStyle = YES; [UIApplication sharedApplication].keyWindow.rootViewController.definesPresentationContext = YES; [[UIApplication sharedApplication].keyWindow.rootViewController setModalPresentationStyle:UIModalPresentationCurrentContext]; //注意,iOS8以下是设置rootViewController为ModalPresentationCurrentContext模式 } else { [self setModalPresentationStyle:UIModalPresentationOverCurrentContext];//iOS8或以上是设置要被present的viewController为ModalPresentationOverCurrentContext模式 } #else [UIApplication sharedApplication].keyWindow.rootViewController.providesPresentationContextTransitionStyle = YES; [UIApplication sharedApplication].keyWindow.rootViewController.definesPresentationContext = YES; [[UIApplication sharedApplication].keyWindow.rootViewController setModalPresentationStyle:UIModalPresentationCurrentContext]; #endif
最新文章
- C# 在类中反射
- 简单跳转到微信分享,基于libWeiChatSDK 和简单的自定义UIActivityViewController
- python 模块加载
- C#--静态函数成员
- PowerShell控制台快捷键
- linux系统性能监视命令
- JS 基于面向对象的 轮播图2
- 如何在React中使用CSS3动画
- Wince6 RIL层移植
- shell操作mysql
- discuz网站数据库迁移
- 海量数据挖掘MMDS week7: 局部敏感哈希LSH(进阶)
- URL.createObjectURL() 实现本地上传图片 并预览功能
- web.xml 文件头
- sqljdbc.jar 和 sqljdbc4.jar
- 布谷鸟搜索算法CS
- uva 213 - Message Decoding (我认为我的方法要比书上少非常多代码,不保证好……)
- Android4.0 Surface机制分析
- AWS系列-修改RDS时间(time_zone)
- 与Webpack最后的战斗
热门文章
- 如何解决innnerText的兼容性问题
- 从 NSURLConnection 到 NSURLSession
- SQL Server中 sysobjects、syscolumns、systypes
- 线性插值(linear interpolation)
- BZOJ 3230: 相似子串( RMQ + 后缀数组 + 二分 )
- aJax学习之Ajax工作原理
- [LeetCode]题解(python):137-Single Number II
- checkbox 全选反选实现全代码
- android ListView的上部下拉刷新下部点击加载更多具体实现及拓展
- openStack juno for ubuntu12-04