| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- //
- // LBInputAlertView.h
- // LoveBaby_Parents
- //
- // Created by apple on 2018/5/23.
- // Copyright © 2018年 onecloud.ltd. All rights reserved.
- // 可输入的alertView(教师端绑定考勤卡使用)
- #import <UIKit/UIKit.h>
- typedef void(^AlertInputBlock)(NSString *inputText);
- typedef void(^AccessoryViewBlock)();
- @interface LBInputAlertView : UIView
- /** 背景图 */
- @property (nonatomic, strong) UIImageView *bgImgView;
- /** 确认按钮回调 */
- @property (nonatomic, copy) AlertInputBlock confirmBlock;
- /** 扫码 (用不到) */
- @property (nonatomic, copy) AccessoryViewBlock accessoryBlock;
- /** 标题 */
- @property (nonatomic, copy) NSString *titleText;
- /** 标题颜色(默认'#333333') */
- @property (nonatomic, strong) UIColor *titleColor;
- /** 站位字符的颜色 */
- @property (nonatomic, copy) NSString *placeholder;
- /** 左边按钮文字(默认'取消') */
- @property (nonatomic, copy) NSString *leftBtnTitle;
- /** 右边按钮文字(默认'确定') */
- @property (nonatomic, copy) NSString *rightBtnTitle;
- /** 左边按钮颜色(默认'#4CD489') */
- @property (nonatomic, strong) UIColor *leftBtnColor;
- /** 右边按钮颜色(默认'#4CD489') */
- @property (nonatomic, strong) UIColor *rightBtnColor;
- /** 输入框(方便设置输入框的键盘type//默认为数字键盘) */
- @property (nonatomic, strong) UITextField *inputField;
- /** 是否显示附件按钮(扫码按钮) */
- @property (nonatomic, assign) BOOL showAccessoryView;
- /** 是否需要隐藏(跳转到扫描界面时需要隐藏,改变透明度) */
- @property (nonatomic, assign) BOOL needHide;
- ///view展示
- - (void)show;
- ///view隐藏
- - (void)dismiss;
- @end
|