浏览代码

1.公告弹框可能出现的异常处理

huangxiaodong 1 年之前
父节点
当前提交
0e40132669
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      创维盒子/双子星云手机/CloudPlayer/PlayerViewController+otherDelegate.mm

+ 5 - 0
创维盒子/双子星云手机/CloudPlayer/PlayerViewController+otherDelegate.mm

@@ -655,6 +655,11 @@
     
     noticeView.curNoticeModel = model;
     
+    //异常处理
+    if(![iTools getKeyWindow]){
+        return;
+    }
+    
     [[iTools getKeyWindow] addSubview:noticeView];
     
     [noticeView mas_makeConstraints:^(MASConstraintMaker *make) {