123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- /**
- 把这个 API的接口,写成C的风格,更简单合适。
-
- 类的本质,是为了简化代码。
- */
- #import <UIKit/UIKit.h>
- @interface LoadingView : UIView
- /**主要是用于输出啊
- */
- +(void)showHUD;
- +(void)removeHUD;
- +(void)showMsg:(NSString*)str;
- @end
- /**各种输入框
- */
- @protocol InputViewDelegate;
- /**功能简化为图片选择器。系统自带的加,照片库。
- */
- @interface InputView : UIView
- {
- // UILabel* titleLabel;
- // UIButton* closeBtn;
- UITextField* tf;
- UIView* contentVi;
- // UIButton* btn0,*btn1;
-
- }
- @property(nonatomic,assign) int type;
- @property(nonatomic,assign) id<InputViewDelegate,UINavigationControllerDelegate,UIImagePickerControllerDelegate>delegate;
- -(id)initWithTitle:(NSString*)title ;
- -(void)show;
- /**removeFromSuperView
- */
- -(void)cancelAction;
- @end
- @protocol InputViewDelegate <NSObject>
- @optional
- -(void)InputView:(InputView*)view didGetImage:(UIImage*)image;
- -(void)InputViewWillPickImage:(InputView*)view;
- @end
- void showHUDTitle(NSString* title);
- void ShowHUD();
- void RemoveHUD();
- void ShowMsg(NSString* str);
- void ShowMsgEmpty();
- /**弹窗提示,该功能暂未开放。
- */
- void ShowMsgUnOpen();
- void showMsgUnconnect();
- void ShowMsgFailed();
- void ShowMsgSuc();
- void showMsgLoginPls();
|