1) If just want to hide all the separator line, can set the separator line style to none; php
2) If want to hide the separator line when without data, can use the code like this: ide
UIView *view =[[UIView alloc] init]; view.backgroundColor = [UIColor clearColor]; [tableView setTableFooterView:view]; [view release];
tableView:numberOfRowsInSection:
if (_arrResults.count == 0) { tableView.separatorStyle = UITableViewCellSeparatorStyleNone; } return _arrResults.count;
Blues this
Reference:http://blog.csdn.net/bihailantian1988/article/details/7703322/ .net
http://www.cocoachina.com/bbs/read.php?tid=169873&keyword=tableview%7C%B7%D6%B8%EE%CF%DF code