Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/objective-c/27.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios UITableViewCell';的内容视图在buttom中有意外的边距_Ios_Objective C_Uitableview_Interface Builder - Fatal编程技术网

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
,在下面的图像下方,我看到白色边距,我无法删除:

  • 调整内容视图的大小
  • 移动灰色图像。白色边距显示在底部 而不是像图中那样在上面。有一种使用 uiview而不是
    UITableViewCell
    ,但我非常想知道
    UITableViewCell
    中的内容导致底部出现白色间隙。 谢谢
  • 用此检查

    - (void)tableView:(UITableView *)tableView
      willDisplayCell:(UITableViewCell *)cell
    forRowAtIndexPath:(NSIndexPath *)indexPath
    {
      [cell setBackgroundColor:[UIColor clearColor]];
    }
    

    iOS 7中UITableViewCell的默认背景色为白色。

    @arash您需要正确设置边框,这样白色就不会出现在底部。您应该将高度增加1。@arash到目前为止您尝试了什么?您是否覆盖了LayoutSubview而忘记调用super?我做过一次,结果也差不多。