@@ -26,18 +26,18 @@ - (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSStr
26
26
}
27
27
if (!_leftTL) {
28
28
_leftTL = [UILabel labelWithSystemFontSize: 12 textColorHexString: @" 0x76808E" ];
29
- _leftTL.text = @" 私有 " ;
29
+ _leftTL.text = @" 项目数 " ;
30
30
[self .contentView addSubview: _leftTL];
31
31
}
32
- if (!_rightL) {
33
- _rightL = [UILabel labelWithFont: [UIFont systemFontOfSize: 16 ] textColor: [UIColor colorWithHexString: @" 0x323A45" ]];
34
- [self .contentView addSubview: _rightL];
35
- }
36
- if (!_rightTL) {
37
- _rightTL = [UILabel labelWithSystemFontSize: 12 textColorHexString: @" 0x76808E" ];
38
- _rightTL.text = @" 公有" ;
39
- [self .contentView addSubview: _rightTL];
40
- }
32
+ // if (!_rightL) {
33
+ // _rightL = [UILabel labelWithFont:[UIFont systemFontOfSize:16] textColor:[UIColor colorWithHexString:@"0x323A45"]];
34
+ // [self.contentView addSubview:_rightL];
35
+ // }
36
+ // if (!_rightTL) {
37
+ // _rightTL = [UILabel labelWithSystemFontSize:12 textColorHexString:@"0x76808E"];
38
+ // _rightTL.text = @"公有";
39
+ // [self.contentView addSubview:_rightTL];
40
+ // }
41
41
if (!_lineV) {
42
42
_lineV = [UIView new ];
43
43
_lineV.backgroundColor = kColorDDD ;
@@ -53,27 +53,31 @@ - (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSStr
53
53
} forControlEvents: UIControlEventTouchUpInside];
54
54
[self .contentView addSubview: _leftBtn];
55
55
}
56
- if (!_rightBtn) {
57
- _rightBtn = [UIButton new ];
58
- [_rightBtn bk_addEventHandler: ^(id sender) {
59
- if (weakSelf.rightBlock ) {
60
- weakSelf.rightBlock ();
61
- }
62
- } forControlEvents: UIControlEventTouchUpInside];
63
- [self .contentView addSubview: _rightBtn];
64
- }
56
+ // if (!_rightBtn) {
57
+ // _rightBtn = [UIButton new];
58
+ // [_rightBtn bk_addEventHandler:^(id sender) {
59
+ // if (weakSelf.rightBlock) {
60
+ // weakSelf.rightBlock();
61
+ // }
62
+ // } forControlEvents:UIControlEventTouchUpInside];
63
+ // [self.contentView addSubview:_rightBtn];
64
+ // }
65
+ // [_lineV mas_makeConstraints:^(MASConstraintMaker *make) {
66
+ // make.center.equalTo(self.contentView);
67
+ // make.size.mas_equalTo(CGSizeMake(0.5, 40));
68
+ // }];
65
69
[_lineV mas_makeConstraints: ^(MASConstraintMaker *make) {
66
- make.center .equalTo (self.contentView );
70
+ make.left .equalTo (self.contentView . mas_right );
67
71
make.size .mas_equalTo (CGSizeMake (0.5 , 40 ));
68
72
}];
69
73
[_leftBtn mas_makeConstraints: ^(MASConstraintMaker *make) {
70
74
make.top .bottom .left .equalTo (self.contentView );
71
75
make.right .equalTo (_lineV.mas_left );
72
76
}];
73
- [_rightBtn mas_makeConstraints: ^(MASConstraintMaker *make) {
74
- make.top .bottom .right .equalTo (self.contentView );
75
- make.left .equalTo (_lineV.mas_right );
76
- }];
77
+ // [_rightBtn mas_makeConstraints:^(MASConstraintMaker *make) {
78
+ // make.top.bottom.right.equalTo(self.contentView);
79
+ // make.left.equalTo(_lineV.mas_right);
80
+ // }];
77
81
[_leftL mas_makeConstraints: ^(MASConstraintMaker *make) {
78
82
make.centerX .equalTo (_leftBtn);
79
83
make.top .equalTo (_leftBtn).offset (15 );
@@ -82,14 +86,14 @@ - (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSStr
82
86
make.centerX .equalTo (_leftBtn);
83
87
make.bottom .equalTo (_leftBtn).offset (-15 );
84
88
}];
85
- [_rightL mas_makeConstraints: ^(MASConstraintMaker *make) {
86
- make.centerX .equalTo (_rightBtn);
87
- make.top .equalTo (_rightBtn).offset (15 );
88
- }];
89
- [_rightTL mas_makeConstraints: ^(MASConstraintMaker *make) {
90
- make.centerX .equalTo (_rightBtn);
91
- make.bottom .equalTo (_rightBtn).offset (-15 );
92
- }];
89
+ // [_rightL mas_makeConstraints:^(MASConstraintMaker *make) {
90
+ // make.centerX.equalTo(_rightBtn);
91
+ // make.top.equalTo(_rightBtn).offset(15);
92
+ // }];
93
+ // [_rightTL mas_makeConstraints:^(MASConstraintMaker *make) {
94
+ // make.centerX.equalTo(_rightBtn);
95
+ // make.bottom.equalTo(_rightBtn).offset(-15);
96
+ // }];
93
97
}
94
98
return self;
95
99
}
0 commit comments