相关疑难解决方法(0)

删除iOS 8 UITableView for XCode 6 iPhone模拟器上的SeparatorInset

我在XCode 6 GM 上UITableViewiPhone 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)

我附上下面的屏幕截图:

桌面视图上的iPhone 6模拟器奇怪的白色空间

我顺便使用AutoLayout.我希望有人可以告诉我一种方法来消除奇怪的白色空间TableView.

iphone uitableview ios xcode6 ios8

61
推荐指数
8
解决办法
4万
查看次数

标签 统计

ios ×1

ios8 ×1

iphone ×1

uitableview ×1

xcode6 ×1