#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

最新文章

  1. C# 在类中反射
  2. 简单跳转到微信分享,基于libWeiChatSDK 和简单的自定义UIActivityViewController
  3. python 模块加载
  4. C#--静态函数成员
  5. PowerShell控制台快捷键
  6. linux系统性能监视命令
  7. JS 基于面向对象的 轮播图2
  8. 如何在React中使用CSS3动画
  9. Wince6 RIL层移植
  10. shell操作mysql
  11. discuz网站数据库迁移
  12. 海量数据挖掘MMDS week7: 局部敏感哈希LSH(进阶)
  13. URL.createObjectURL() 实现本地上传图片 并预览功能
  14. web.xml 文件头
  15. sqljdbc.jar 和 sqljdbc4.jar
  16. 布谷鸟搜索算法CS
  17. uva 213 - Message Decoding (我认为我的方法要比书上少非常多代码,不保证好……)
  18. Android4.0 Surface机制分析
  19. AWS系列-修改RDS时间(time_zone)
  20. 与Webpack最后的战斗

热门文章

  1. 如何解决innnerText的兼容性问题
  2. 从 NSURLConnection 到 NSURLSession
  3. SQL Server中 sysobjects、syscolumns、systypes
  4. 线性插值(linear interpolation)
  5. BZOJ 3230: 相似子串( RMQ + 后缀数组 + 二分 )
  6. aJax学习之Ajax工作原理
  7. [LeetCode]题解(python):137-Single Number II
  8. checkbox 全选反选实现全代码
  9. android ListView的上部下拉刷新下部点击加载更多具体实现及拓展
  10. openStack juno for ubuntu12-04