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