PFBeautyEditView.m 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. //
  2. // PFBeautyEditView.m
  3. // SMEngineDemo
  4. //
  5. // Created by mumu on 2019/11/6.
  6. // Copyright © 2019 pfdetect. All rights reserved.
  7. //
  8. #import "PFBeautyEditView.h"
  9. #import "PFBottomColletionView.h"
  10. #import "PFBeautyView.h"
  11. @interface PFBeautyEditView()<PFBottomColletionViewDelegate>
  12. /* 美肤View */
  13. @property (strong, nonatomic) PFBeautyView *colorCollectionView;
  14. //
  15. //@property (strong, nonatomic) FUAvatarContentColletionView *avatarContentColletionView;
  16. /* 底部选择器 */
  17. @property (strong, nonatomic) PFBottomColletionView *bottomColletionView;
  18. @end
  19. @implementation PFBeautyEditView
  20. - (id)initWithFrame:(CGRect)frame withData:(NSArray *)dataArray{
  21. self = [super initWithFrame:frame];
  22. if (self){
  23. _bottomColletionView = [[PFBottomColletionView 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 - PFBottomColletionViewDelegate
  32. -(void)bottomColletionDidSelectedIndex:(NSInteger)index{
  33. }
  34. @end