我在从NIB创建的视图内部有一个UITableView。该表有一个包含6行和1页脚的部分。当我使用:UITableView随机在页面返回正确大小的页脚时出现白线
- (CGFloat)tableView:(UITableView *)tableView heightForFooterInSection:(NSInteger)section{
return 80;
}
返回页脚的高度,这是从同一个NIB加载。所述的UITableViewCell在笔尖具有80的高度UITableViewCells都采用这种代码分配:
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
如果(indexPath.section == 0){ 如果(indexPath.row == 0){ 返回companyCell ; }
if(indexPath.row == 1){0} { return firstNameCell; } if(indexPath.row == 2){return lastNameCell; } if(indexPath.row == 3){0}返回emailCell; } if(indexPath.row == 4){0}返回passwordCell; } if(indexPath.row == 5){0}返回passwordConfirmCell; } }
return passwordConfirmCell;
}
得到我的表像的图像底部的白线,如果我返回的79或81英尺的高度,白线将消失, UITableViewCell缩放至窗口的宽度
有什么想法?
抱歉上面的代码格式错误。当我输入时,stackoverflow提供了一个适当的预览。 – swnsn 2010-08-08 18:11:10
81px页脚的图像位于http://swnsn.com/nowhite.png – swnsn 2010-08-08 18:12:44