【发布时间】:2014-09-30 17:35:10
【问题描述】:
我将图像背景设置为这样的表格视图:
[self.tableView setBackgroundColor:[UIColor clearColor]];
UIImageView *tableBackgroundView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"myImage"]];
[tableBackgroundView setFrame: self.tableView.frame];
[self.tableView setBackgroundView:tableBackgroundView];
如果我向下移动滚动条,它总是在末尾显示一条灰线。我试过了
self.tableView.separatorStyle = UITableViewCellSeparatorStyleNone;
self.tableView.tableFooterView = [[UIView alloc] initWithFrame:CGRectZero];
但它仍然无法正常工作。
【问题讨论】:
-
您是否关闭了分隔符?将分隔符样式设置为
UITableViewCellSeparatorStyleNone。 -
@CrimsonChris 我更新了问题,我尝试了 UITableViewCellSeparatorStyleNone 但仍然无法正常工作。
标签: objective-c uitableview ios7 ios8