在创建UITableView处,调用tableview.separatorStyle = UITableViewCellSeparatorStyleNone;
在自定义cell的.m文件加入下面的代码
- (void)drawRect:(CGRect)rect
{
CGContextRef context = UIGraphicsGetCurrentContext();
CGContextSetFillColorWithColor(context, [UIColor clearColor].CGColor);
CGContextFillRect(context, rect);
//上分割线,