Ios UITableViewCell';的内容视图在buttom中有意外的边距
使用最新的Ios UITableViewCell';的内容视图在buttom中有意外的边距,ios,objective-c,uitableview,interface-builder,Ios,Objective C,Uitableview,Interface Builder,使用最新的Xcode,并为ios 7开发,使用UITableViewCell,在下面的图像下方,我看到白色边距,我无法删除: 调整内容视图的大小 移动灰色图像。白色边距显示在底部 而不是像图中那样在上面。有一种使用 uiview而不是UITableViewCell,但我非常想知道 UITableViewCell中的内容导致底部出现白色间隙。 谢谢 用此检查 - (void)tableView:(UITableView *)tableView willDisplayCell:(UITableV
Xcode
,并为ios 7
开发,使用UITableViewCell
,在下面的图像下方,我看到白色边距,我无法删除:
UITableViewCell
,但我非常想知道
UITableViewCell
中的内容导致底部出现白色间隙。
谢谢- (void)tableView:(UITableView *)tableView
willDisplayCell:(UITableViewCell *)cell
forRowAtIndexPath:(NSIndexPath *)indexPath
{
[cell setBackgroundColor:[UIColor clearColor]];
}
iOS 7中UITableViewCell的默认背景色为白色。@arash您需要正确设置边框,这样白色就不会出现在底部。您应该将高度增加1。@arash到目前为止您尝试了什么?您是否覆盖了LayoutSubview而忘记调用super?我做过一次,结果也差不多。