SectionChooseView.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. //
  2. // SectionChooseView.h
  3. // CommunityService
  4. //
  5. // Created by lujh on 2017/3/8.
  6. // Copyright © 2017年 卢家浩. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. @protocol SectionChooseVCDelegate <NSObject>
  10. @required
  11. - (void)SectionSelectIndex:(NSInteger)selectIndex;
  12. @end
  13. @interface SectionChooseView : UIView
  14. /**
  15. * 圆角 默认 4
  16. */
  17. @property (nonatomic, assign) CGFloat cornerRadius;
  18. /**
  19. * 边框宽度 默认 1
  20. */
  21. @property (nonatomic, assign) CGFloat borderWidth;
  22. /**
  23. * 未点击状态及高亮状态下item背景颜色 默认 [UIColor whiteColor]
  24. */
  25. @property (nonatomic, copy) UIColor * normalBackgroundColor;
  26. /**
  27. * 选中状态下item颜色 默认 [UIColor redColor]
  28. */
  29. @property (nonatomic, copy) UIColor * selectBackgroundColor;
  30. /**
  31. * 未选中状态下item字体颜色 默认 [UIColor lightGrayColor]
  32. */
  33. @property (nonatomic, copy) UIColor * titleNormalColor;
  34. /**
  35. * 选中状态下item字体颜色 默认 [UIColor blueColor]
  36. */
  37. @property (nonatomic, copy) UIColor * titleSelectColor;
  38. /**
  39. * 选中第几个item 默认 0
  40. */
  41. @property (nonatomic, assign) NSInteger selectIndex;
  42. /**
  43. * 正常状态下item字体大小
  44. */
  45. @property (nonatomic, assign) CGFloat normalTitleFont;
  46. /**
  47. * 选中状态下item字体大小
  48. */
  49. @property (nonatomic, assign) CGFloat selectTitleFont;
  50. @property (nonatomic, assign) id <SectionChooseVCDelegate>delegate;
  51. - (instancetype)initWithFrame:(CGRect)frame titleArray:(NSArray *)titleArray;
  52. @end