فهرست منبع

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];
 }