我在XCode 6 GM 上UITableView
为iPhone 6模拟器(iOS 8)找到了一个奇怪的白色空间.我试图设置SeparatorInset
故事板和代码,但白色空间直到那里.
以下代码适用于iOS 7,但不适用于iOS 8(iPhone 6模拟器).
-(void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath{
if ([tableView respondsToSelector:@selector(setSeparatorInset:)]) {
[tableView setSeparatorInset:UIEdgeInsetsZero];
}
}
Run Code Online (Sandbox Code Playgroud)
我附上下面的屏幕截图:
我顺便使用AutoLayout.我希望有人可以告诉我一种方法来消除奇怪的白色空间TableView
.