Преглед на файлове

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) {