self.edgesForExtendedLayout=UIRectEdgeNone;
[self setExtraCellLineHidden:self.myTableView];
- (void)setExtraCellLineHidden: (UITableView *)tableView{
UIView *view =[ [UIView alloc]init];
view.backgroundColor = [UIColor clearColor];
[tableView setTableFooterView:view];
[tableView setTableHeaderView:view];
}
原文:http://blog.csdn.net/darongzi1314/article/details/43452915