Skip to content

Commit f39982d

Browse files
committed
task 页面调整
1 parent ebddb9c commit f39982d

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

Coding_iOS/Views/Cell/LeftImage_LRTextCell.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ - (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reus
3737
}
3838
if (!_rightLabel) {
3939
_rightLabel = [[UILabel alloc] initWithFrame:CGRectMake(CGRectGetMaxX(_leftLabel.frame), 7, kScreen_Width - CGRectGetMaxX(_leftLabel.frame) - 35, 30)];
40-
_rightLabel.font = [UIFont systemFontOfSize:18];
40+
_rightLabel.font = [UIFont systemFontOfSize:16];
4141
_rightLabel.textColor = kColor999;
4242
_rightLabel.textAlignment = NSTextAlignmentRight;
4343
[self.contentView addSubview:_rightLabel];
@@ -144,6 +144,6 @@ - (void)layoutSubviews{
144144

145145

146146
+ (CGFloat)cellHeight{
147-
return 44;
147+
return 50;
148148
}
149149
@end

Coding_iOS/Views/Cell/TaskContentCell.m

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ - (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reus
9494
make.left.equalTo(self.contentView).offset(kPaddingLeftWidth);
9595
make.right.equalTo(self.contentView).offset(-kPaddingLeftWidth);
9696
make.height.mas_equalTo(0.5);
97-
make.bottom.equalTo(_tagsView).offset(5);
97+
make.bottom.equalTo(_tagsView).offset(7);
9898
}];
9999
[_taskContentView mas_makeConstraints:^(MASConstraintMaker *make) {
100100
make.top.equalTo(_upLineView.mas_bottom).offset(5.0);
@@ -136,7 +136,7 @@ - (void)layoutSubviews{
136136
}
137137
_tagsView.tags = _task.labels;
138138
[_tagsView mas_remakeConstraints:^(MASConstraintMaker *make) {
139-
make.top.equalTo(self.contentView).offset(10);
139+
make.top.equalTo(self.contentView).offset(12);
140140
make.left.right.equalTo(self.contentView);
141141
make.height.mas_equalTo([ProjectTagsView getHeightForTags:self.task.labels]);
142142
}];
@@ -187,9 +187,9 @@ + (CGFloat)cellHeightWithObj:(id)obj{
187187
CGFloat cellHeight = 0;
188188
if ([obj isKindOfClass:[Task class]]) {
189189
Task *task = (Task *)obj;
190-
cellHeight += 10;
190+
cellHeight += 12;
191191
cellHeight += [ProjectTagsView getHeightForTags:task.labels];
192-
cellHeight += 10 + kTaskContentCell_ContentHeightMin + 40;
192+
cellHeight += 7 + 5 + kTaskContentCell_ContentHeightMin + 40;
193193
}
194194
return cellHeight;
195195
}

Coding_iOS/Views/Cell/TaskDescriptionCell.m

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ - (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reus
2121
self.selectionStyle = UITableViewCellSelectionStyleNone;
2222

2323
if (!_button) {
24-
_button = [[UIButton alloc] initWithFrame:CGRectMake(kPaddingLeftWidth, ([[self class] cellHeight] - 30)/2, kScreen_Width - 2*kPaddingLeftWidth, 30)];
24+
_button = [[UIButton alloc] initWithFrame:CGRectMake(kPaddingLeftWidth, ([[self class] cellHeight] - 40)/2, kScreen_Width - 2*kPaddingLeftWidth, 40)];
2525
_button.titleLabel.font = [UIFont systemFontOfSize:16];
2626
_button.backgroundColor = kColorTableSectionBg;
2727
_button.layer.masksToBounds = YES;
@@ -40,7 +40,6 @@ - (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reus
4040
- (void)setTitleStr:(NSString *)title andSpecail:(BOOL)isSpecail{
4141
[_button setTitle:title forState:UIControlStateNormal];
4242
[_button setTitleColor:[UIColor colorWithHexString:isSpecail? @"0x3bbd79": @"0x222222"] forState:UIControlStateNormal];
43-
4443
}
4544

4645
- (void)buttonClicked:(id)sender{
@@ -50,6 +49,6 @@ - (void)buttonClicked:(id)sender{
5049
}
5150

5251
+ (CGFloat)cellHeight{
53-
return 54.0;
52+
return 70.0;
5453
}
5554
@end

0 commit comments

Comments
 (0)