Commit 9f6a5161 by 刘卓鑫

更改

parent 5b56ed5b
// //
...@@ -449,7 +449,7 @@ ...@@ -449,7 +449,7 @@
} }
- (CGFloat) tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section { - (CGFloat) tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section {
ZXHomeSectionInfo *sec = self.service.dataSource[section]; ZXHomeSectionInfo *sec = self.service.dataSource[section];
return section==0?0:(sec.isShow?50.0f:20.0f); return section==0?0:(sec.isShow?50.0f:15.0f);
} }
- (UIView *) tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section { - (UIView *) tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section {
ZXHomeSectionInfo *sec = self.service.dataSource[section]; ZXHomeSectionInfo *sec = self.service.dataSource[section];
......
...@@ -14,13 +14,13 @@ ...@@ -14,13 +14,13 @@
- (instancetype)initWithReuseIdentifier:(NSString *)reuseIdentifier { - (instancetype)initWithReuseIdentifier:(NSString *)reuseIdentifier {
if (self = [super initWithReuseIdentifier:reuseIdentifier]) { if (self = [super initWithReuseIdentifier:reuseIdentifier]) {
UIView *holder = [[UIView alloc] init]; UIView *holder = [[UIView alloc] init];
holder.backgroundColor = [UIColor colorWithHexString:@"f6f6f6"]; holder.backgroundColor = RGB(243, 243, 243);
[self.contentView addSubview:holder]; [self.contentView addSubview:holder];
[holder mas_makeConstraints:^(MASConstraintMaker *make) { [holder mas_makeConstraints:^(MASConstraintMaker *make) {
make.left.equalTo(self.contentView.mas_left).offset(20 * k6Scale); make.left.equalTo(self.contentView.mas_left).offset(20 * k6Scale);
make.right.equalTo(self.contentView.mas_right).offset(-20 * k6Scale); make.right.equalTo(self.contentView.mas_right).offset(-20 * k6Scale);
make.bottom.equalTo(self.contentView).offset(-5 * k6Scale); make.bottom.equalTo(self.contentView).offset(-3 * k6Scale);
make.height.mas_equalTo(2); make.height.mas_equalTo(1);
}]; }];
self.contentView.backgroundColor = [UIColor whiteColor]; self.contentView.backgroundColor = [UIColor whiteColor];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment