FUColourView.h 694 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. //
  2. // FUColourView.h
  3. // FULiveDemo
  4. //
  5. // Created by 孙慕 on 2019/5/31.
  6. // Copyright © 2019 FaceUnity. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. NS_ASSUME_NONNULL_BEGIN
  10. @protocol FUColourViewDelegate <NSObject>
  11. @optional
  12. -(void)colourViewDidSelIndex:(int)index;
  13. @end
  14. @interface FUColourView : UIView
  15. @property (assign,nonatomic) id<FUColourViewDelegate> delegate;
  16. - (void)setDataColors:(NSArray <NSArray*>*)colors;
  17. - (void)setSelCell:(int)index;
  18. @end
  19. @interface FUColourViewCell : UICollectionViewCell
  20. @property (strong, nonatomic) UIImageView *topImage;
  21. @property (strong, nonatomic) UILabel *botlabel;
  22. -(void)setColors:(NSArray *)array;
  23. @end
  24. NS_ASSUME_NONNULL_END