CustomBoxView.h 1.1 KB

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