LoadingView.h 959 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. /**
  2. 把这个API的接口,写成C的风格,更简单合适。
  3. 类的本质,是为了简化代码。
  4. */
  5. #import <UIKit/UIKit.h>
  6. @interface LoadingView : UIView
  7. /**主要是用于输出啊
  8. */
  9. +(void)showMsg:(NSString*)str;
  10. //网络加载
  11. +(void)showHUD;
  12. //移除加载
  13. +(void)removeHUD;
  14. /**0是普通的警告。1是操作成功的
  15. */
  16. +(void)showMsg:(NSString *)str Style:(int)style;
  17. @end
  18. void ShowHUD(void);//网络加载
  19. void RemoveHUD(void);//移除加载
  20. void ShowMsg(NSString* str);//简短文字提示,会自动移除
  21. void showMsgByAlert(UIViewController *vc,NSString *str);//确定弹框提示
  22. void showMsgByAlertWithSureBlock(UIViewController *vc,NSString *str,BlockTypeVo sureBlock);//确定弹框提示2
  23. /**弹窗提示
  24. */
  25. void ShowMsgUnOpen(void); //暂未开放,敬请期待
  26. void showMsgUnconnect(void); //网络未连接
  27. void ShowMsgFailed(void); //请求失败
  28. void ShowMsgSuc(void); //操作成功