设置tableViewCell之间的间距

来源:互联网 发布:淘宝卖家客服几点上班 编辑:程序博客网 时间:2024/04/28 14:30

 

 UIView *view = [[UIView alloc initWithFrame:CGRectMake(0, 0, 320, 10)]; view.backgroundColor = [UIColor colorWithRed:74.0/255 green:56.0/255 blue:58.0/255 alpha:1.0]; [cell.contentView addSubview:view]; [view release];在cell里面定义一个view把view的背景设为tableView的背景色,这样就出现间隔了


在cell里面定义一个view把view的背景设为tableView的背景色,这样就出现间隔了

0 0
原创粉丝点击