LBInputAlertView.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. //
  2. // LBInputAlertView.h
  3. // LoveBaby_Parents
  4. //
  5. // Created by apple on 2018/5/23.
  6. // Copyright © 2018年 onecloud.ltd. All rights reserved.
  7. // 可输入的alertView(教师端绑定考勤卡使用)
  8. #import <UIKit/UIKit.h>
  9. typedef void(^AlertInputBlock)(NSString *inputText);
  10. typedef void(^AccessoryViewBlock)();
  11. @interface LBInputAlertView : UIView
  12. /** 背景图 */
  13. @property (nonatomic, strong) UIImageView *bgImgView;
  14. /** 确认按钮回调 */
  15. @property (nonatomic, copy) AlertInputBlock confirmBlock;
  16. /** 扫码 (用不到) */
  17. @property (nonatomic, copy) AccessoryViewBlock accessoryBlock;
  18. /** 标题 */
  19. @property (nonatomic, copy) NSString *titleText;
  20. /** 标题颜色(默认'#333333') */
  21. @property (nonatomic, strong) UIColor *titleColor;
  22. /** 站位字符的颜色 */
  23. @property (nonatomic, copy) NSString *placeholder;
  24. /** 左边按钮文字(默认'取消') */
  25. @property (nonatomic, copy) NSString *leftBtnTitle;
  26. /** 右边按钮文字(默认'确定') */
  27. @property (nonatomic, copy) NSString *rightBtnTitle;
  28. /** 左边按钮颜色(默认'#4CD489') */
  29. @property (nonatomic, strong) UIColor *leftBtnColor;
  30. /** 右边按钮颜色(默认'#4CD489') */
  31. @property (nonatomic, strong) UIColor *rightBtnColor;
  32. /** 输入框(方便设置输入框的键盘type//默认为数字键盘) */
  33. @property (nonatomic, strong) UITextField *inputField;
  34. /** 是否显示附件按钮(扫码按钮) */
  35. @property (nonatomic, assign) BOOL showAccessoryView;
  36. /** 是否需要隐藏(跳转到扫描界面时需要隐藏,改变透明度) */
  37. @property (nonatomic, assign) BOOL needHide;
  38. ///view展示
  39. - (void)show;
  40. ///view隐藏
  41. - (void)dismiss;
  42. @end