FUBeautyEditView.m 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. //
  2. // FUBeautyEditView.m
  3. // FULiveDemo
  4. //
  5. // Created by 孙慕 on 2019/11/6.
  6. // Copyright © 2019 FaceUnity. All rights reserved.
  7. //
  8. #import "FUBeautyEditView.h"
  9. #import "FUBottomColletionView.h"
  10. #import "FUBeautyView.h"
  11. @interface FUBeautyEditView()<FUBottomColletionViewDelegate>
  12. /* 美肤View */
  13. @property (strong, nonatomic) FUBeautyView *colorCollectionView;
  14. //
  15. //@property (strong, nonatomic) FUAvatarContentColletionView *avatarContentColletionView;
  16. /* 底部选择器 */
  17. @property (strong, nonatomic) FUBottomColletionView *bottomColletionView;
  18. @end
  19. @implementation FUBeautyEditView
  20. - (id)initWithFrame:(CGRect)frame withData:(NSArray *)dataArray{
  21. self = [super initWithFrame:frame];
  22. if (self){
  23. _bottomColletionView = [[FUBottomColletionView alloc] initWithFrame:CGRectMake(0, CGRectGetMaxY(frame) - 49,[UIScreen mainScreen].bounds.size.width, 49)];
  24. _bottomColletionView.delegate = self;
  25. _bottomColletionView.backgroundColor = [UIColor whiteColor];
  26. _bottomColletionView.dataArray = @[@"美肤",@"美型",@"滤镜"];
  27. [self addSubview:_bottomColletionView];
  28. }
  29. return self;
  30. }
  31. #pragma mark - FUBottomColletionViewDelegate
  32. -(void)bottomColletionDidSelectedIndex:(NSInteger)index{
  33. }
  34. @end