【发布时间】:2017-07-17 08:24:05
【问题描述】:
我想在表格视图部分添加分隔线。目前,标题部分视图的代码为:
- (void)tableView:(UITableView *)tableView willDisplayHeaderView:(UIView *)view forSection:(NSInteger)section {
// recast your view as a UITableViewHeaderFooterView
UITableViewHeaderFooterView *header = (UITableViewHeaderFooterView *)view;
header.backgroundView.backgroundColor = [UIColor clearColor];
header.textLabel.textColor = [UIColor blackColor];
[header.textLabel setFont:[UIFont fontWithName:@"Rubik-Regular" size:15.0]];
}
【问题讨论】:
-
您的后退按钮在错误的一侧,请不要这样做
-
@Lope 你是指右上角的后退按钮吗?
-
是的,那个。它违背了用户习惯的一切
-
@Lope 好的,感谢您的指正。
标签: ios objective-c xcode uitableview