CustomInfoView.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435
  1. //
  2. // CustomInfoView.h
  3. // mask
  4. //
  5. // Created by 翟玉磊 on 2018/11/21.
  6. // Copyright © 2018 翟玉磊. All rights reserved.
  7. //
  8. #import "BaseView.h"
  9. NS_ASSUME_NONNULL_BEGIN
  10. @interface CustomInfoView : BaseView
  11. @property (nonatomic, readwrite, strong) UILabel *titleLabel;
  12. @property (nonatomic, readwrite, strong) UITextField *textField;
  13. @property (nonatomic, readwrite, strong) UIImageView *moreImageView;
  14. @property (nonatomic, copy) NSString *title; //标题
  15. @property (nonatomic, readwrite, copy) NSString *placeholder; //默认提示文
  16. @property (nonatomic, strong) UIFont *font; //标题字体
  17. @property (nonatomic, strong) UIColor *titleColor;
  18. @property (nonatomic, strong) UIImage *moreImag; //设置更多按钮的图片
  19. /// 是否可以点击 YES可点击(按钮显示) 默认可点击(不能输入)
  20. @property (nonatomic) BOOL isClick;
  21. @property (nonatomic) BOOL isShowMoreImage; //是否显示更多图标 默认NO不显示
  22. @property (nonatomic) BOOL isShowTopLine; //是否显示顶部分割线 默认隐藏
  23. @property (nonatomic) BOOL isShowBottomLine; //是否显示底部分割线 默认显示
  24. //添加按钮的两种方式 在添加按钮点击方法时已经默认为可以点击(显示按钮)
  25. - (void)addTarget:(id)target action:(SEL)action forControlEvents:(UIControlEvents)controlEvents;
  26. @end
  27. NS_ASSUME_NONNULL_END