Dan*_*any 1 iphone xcode uitableview ios
这是我的应用程序的图像

如您所见,每行都有白线.我该怎么走出那条线.
这是我完成的单元格代码
cell.backgroundView = [ [[UIImageView alloc] initWithImage:[ [UIImage imageNamed:@"conta.png"] stretchableImageWithLeftCapWidth:0.0 topCapHeight:5.0] ]autorelease];
cell.textLabel.backgroundColor=[UIColor clearColor];
cell.textLabel.text = [tableArray objectAtIndex:indexPath.row];
cell.selectionStyle = UITableViewCellSelectionStyleNone;
tableView.backgroundColor=[UIColor clearColor];
return cell;
Run Code Online (Sandbox Code Playgroud)
我需要消灭每行中的白线.我怎样才能做到这一点?
在设置表视图的某个位置,您可以将分隔符样式设置为"无".这可以在界面构建器storyboard/nib中完成,也可以在代码中完成,例如:
[self.tableView setSeparatorStyle:UITableViewCellSeparatorStyleNone];
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
3175 次 |
| 最近记录: |