InputView.h 907 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. //
  2. // InputView.h
  3. // jiaPei
  4. //
  5. // Created by apple on 16/1/7.
  6. // Copyright © 2016年 JCZ. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. @protocol InputViewDelegate;
  10. /**功能简化为图片选择器。系统自带的加,照片库。
  11. */
  12. @interface InputView : UIView
  13. {
  14. // UILabel* titleLabel;
  15. // UIButton* closeBtn;
  16. UITextField* tf;
  17. UIView* contentVi;
  18. // UIButton* btn0,*btn1;
  19. }
  20. @property(nonatomic,assign)int type ;//媒体类型。0是照片库。1是照相机。
  21. @property(nonatomic,assign) id<InputViewDelegate,UINavigationControllerDelegate,UIImagePickerControllerDelegate>delegate;
  22. -(id)initWithTitle:(NSString*)title ;
  23. -(void)show;
  24. /**removeFromSuperView
  25. */
  26. -(void)cancelAction;
  27. @end
  28. @protocol InputViewDelegate <NSObject>
  29. @optional
  30. -(void)InputView:(InputView*)view didGetImage:(UIImage*)image;
  31. -(void)InputViewWillPickImage:(InputView*)view;
  32. @end