admin
2022-01-17 b63ed504f6d1e652d9fbd67c1490e7821b159c75
BuWanVideo2.0/Recommend/View/RecommendNavView.m
@@ -37,8 +37,17 @@
    UIButton *buttonRecord = [[UIButton alloc] init];
    [buttonRecord setImage:[UIImage imageNamed:@"home_record"] forState:UIControlStateNormal];
    [self addSubview:buttonRecord];
    buttonRecord.sd_layout.rightSpaceToView(self, 21).centerYEqualToView(_viewNav).widthIs(23).heightIs(23);
    buttonRecord.sd_layout.rightSpaceToView(self, 51).centerYEqualToView(_viewNav).widthIs(23).heightIs(23);
    [buttonRecord addTarget:self action:@selector(onViewRecord) forControlEvents:UIControlEventTouchUpInside];
    //分类
    UIButton *buttonCategory = [[UIButton alloc] init];
    [buttonCategory setImage:[UIImage imageNamed:@"home_category"] forState:UIControlStateNormal];
    [self addSubview:buttonCategory];
    buttonCategory.sd_layout.rightSpaceToView(self, 10).centerYEqualToView(buttonRecord).widthIs(23).heightIs(23);
    [buttonCategory addTarget:self action:@selector(onViewCategory) forControlEvents:UIControlEventTouchUpInside];
    
    [self.viewNav addSubview:self.viewSearch];
    self.viewSearch.sd_layout.leftSpaceToView(self.viewNav, 11).centerYEqualToView(self.viewNav).rightSpaceToView(buttonRecord, 21).heightIs(34);
@@ -61,6 +70,10 @@
    !self.onRecord?:self.onRecord();
}
- (void)onViewCategory {
    !self.onCategory?:self.onCategory();
}
- (void)touchSearch {
    !self.onSearch?:self.onSearch();
}