소스 검색

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