Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit a64b2c8

Browse files
个人版【我】页面,项目数不分公有/私有
1 parent 357efc5 commit a64b2c8

File tree

1 file changed

+36
-32
lines changed

1 file changed

+36
-32
lines changed

‎Coding_iOS/Views/Cell/MeRootServiceCell.m

Lines changed: 36 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -26,18 +26,18 @@ - (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSStr
2626
}
2727
if (!_leftTL) {
2828
_leftTL = [UILabel labelWithSystemFontSize:12 textColorHexString:@"0x76808E"];
29-
_leftTL.text = @"私有";
29+
_leftTL.text = @"项目数";
3030
[self.contentView addSubview:_leftTL];
3131
}
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+
// }
4141
if (!_lineV) {
4242
_lineV = [UIView new];
4343
_lineV.backgroundColor = kColorDDD;
@@ -53,27 +53,31 @@ - (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSStr
5353
} forControlEvents:UIControlEventTouchUpInside];
5454
[self.contentView addSubview:_leftBtn];
5555
}
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+
// }];
6569
[_lineV mas_makeConstraints:^(MASConstraintMaker *make) {
66-
make.center.equalTo(self.contentView);
70+
make.left.equalTo(self.contentView.mas_right);
6771
make.size.mas_equalTo(CGSizeMake(0.5, 40));
6872
}];
6973
[_leftBtn mas_makeConstraints:^(MASConstraintMaker *make) {
7074
make.top.bottom.left.equalTo(self.contentView);
7175
make.right.equalTo(_lineV.mas_left);
7276
}];
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+
// }];
7781
[_leftL mas_makeConstraints:^(MASConstraintMaker *make) {
7882
make.centerX.equalTo(_leftBtn);
7983
make.top.equalTo(_leftBtn).offset(15);
@@ -82,14 +86,14 @@ - (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSStr
8286
make.centerX.equalTo(_leftBtn);
8387
make.bottom.equalTo(_leftBtn).offset(-15);
8488
}];
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+
// }];
9397
}
9498
return self;
9599
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /