LoadingView.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. /**
  2. 把这个 API的接口,写成C的风格,更简单合适。
  3. 类的本质,是为了简化代码。
  4. */
  5. #import <UIKit/UIKit.h>
  6. @interface LoadingView : UIView
  7. /**主要是用于输出啊
  8. */
  9. +(void)showHUD;
  10. +(void)removeHUD;
  11. +(void)showMsg:(NSString*)str;
  12. @end
  13. /**各种输入框
  14. */
  15. @protocol InputViewDelegate;
  16. /**功能简化为图片选择器。系统自带的加,照片库。
  17. */
  18. @interface InputView : UIView
  19. {
  20. // UILabel* titleLabel;
  21. // UIButton* closeBtn;
  22. UITextField* tf;
  23. UIView* contentVi;
  24. // UIButton* btn0,*btn1;
  25. }
  26. @property(nonatomic,assign) int type;
  27. @property(nonatomic,assign) id<InputViewDelegate,UINavigationControllerDelegate,UIImagePickerControllerDelegate>delegate;
  28. -(id)initWithTitle:(NSString*)title ;
  29. -(void)show;
  30. /**removeFromSuperView
  31. */
  32. -(void)cancelAction;
  33. @end
  34. @protocol InputViewDelegate <NSObject>
  35. @optional
  36. -(void)InputView:(InputView*)view didGetImage:(UIImage*)image;
  37. -(void)InputViewWillPickImage:(InputView*)view;
  38. @end
  39. void showHUDTitle(NSString* title);
  40. void ShowHUD();
  41. void RemoveHUD();
  42. void ShowMsg(NSString* str);
  43. void ShowMsgEmpty();
  44. /**弹窗提示,该功能暂未开放。
  45. */
  46. void ShowMsgUnOpen();
  47. void showMsgUnconnect();
  48. void ShowMsgFailed();
  49. void ShowMsgSuc();
  50. void showMsgLoginPls();