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

1.修改iOS Apex Drivers Alert消息为空不显示。

Pen Li преди 7 години
родител
ревизия
e2778b2ecf
променени са 1 файла, в които са добавени 3 реда и са изтрити 0 реда
  1. 3 0
      Redant Drivers/Apex And Drivers/BaseViewController/RABaseViewController.m

+ 3 - 0
Redant Drivers/Apex And Drivers/BaseViewController/RABaseViewController.m

@@ -50,6 +50,9 @@
 }
 
 - (void)showAlert:(NSString *)msg {
+    if (msg.length == 0) {
+        return;
+    }
     [self.view makeToast:msg duration:2.0f position:CSToastPositionCenter];
 }