iOS11MBProgressHUD无法显示弹窗
来源:互联网 发布:武汉理工网络教学平台 编辑:程序博客网 时间:2024/06/01 09:57
if (view == nil) view = [[UIApplication sharedApplication].windows lastObject];
改为
if (view == nil) view = [UIApplication sharedApplication].keyWindow;
keyWindow Discussion
The value of this property is YES when the window is the key window or NO when it is not. The key window receives keyboard and other non-touch related events. Only one window at a time may be the key window.
windows Discussion
This property contains the UIWindow objects currently associated with the app. This list does not include windows created and managed by the system, such as the window used to display the status bar.
The windows in the array are ordered from back to front by window level; thus, the last window in the array is on top of all other app windows.
我分别打印iOS11和iOS10的windows集合都不同,所以以后谨慎使用[[UIApplication sharedApplication].windows lastObject];
阅读全文
1 0
- iOS11MBProgressHUD无法显示弹窗
- chm 显示无法显示
- 该页无法显示
- 无法显示隐藏文件
- 修复缩略图无法显示
- Word 无法显示图片
- 无法显示隐藏文件
- 无法显示 XML 页
- 无法显示XML 页
- 广告无法显示
- 验证码!!无法显示
- IE无法显示PNG
- IIS无法显示XML
- VS2005..解决方案.无法显示
- msdn无法显示网页
- 无法显示 XML 页
- MSDN 无法显示网页
- Flex无法显示中文
- 预印本(Preprint)及出版商的投稿政策
- SSL_1597石子合并问题(动规练习题)
- JAVA中float转换为string
- 蓝桥杯练习题之01字串
- Android | Android系统框架
- iOS11MBProgressHUD无法显示弹窗
- 文章标题
- NIFI 集群状态管理State Management
- JAVA多线程系列--并发工具类(CountDownLatch, CyclicBarrier, Semaphore,Exchanger)
- OpenFire+Spark安装及32位64位问题解决
- 逻辑英语_倒装与强调
- 正确的理解加密芯片
- C在字符串后面加/0和0
- Fragment详细学习解析