猎豆优选

ZLDrawItem.h 743B

123456789101112131415161718192021222324252627282930313233
  1. //
  2. // ZLDrawItem.h
  3. // ZLPhotoBrowser
  4. //
  5. // Created by long on 2018/5/9.
  6. // Copyright © 2018年 long. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. typedef NS_ENUM(NSUInteger, ZLDrawItemColorType) {
  10. ZLDrawItemColorTypeWhite,
  11. ZLDrawItemColorTypeDarkGray,
  12. ZLDrawItemColorTypeRed,
  13. ZLDrawItemColorTypeYellow,
  14. ZLDrawItemColorTypeGreen,
  15. ZLDrawItemColorTypeBlue,
  16. ZLDrawItemColorTypePurple,
  17. };
  18. @interface ZLDrawItem : UIView
  19. - (UIColor *)color;
  20. - (instancetype)initWithFrame:(CGRect)frame
  21. colorType:(ZLDrawItemColorType)colorType
  22. target:(id)target
  23. action:(SEL)action NS_DESIGNATED_INITIALIZER;
  24. @property (nonatomic, assign) BOOL selected;
  25. @end