tableview去掉多余的横线

 tableview,如果数据量少时,会出现很多横线,为此添加footview,就可以去掉多余的横线。

CGRect theFooterRect = theRect;

    theFooterRect.size.height -= 46;
    UIView * newFooterView = [[UIView alloc] initWithFrame:theFooterRect];
    self.tableView.tableFooterView = newFooterView;
    [newFooterView release];
posted on 2010-11-30 16:26  fairycao  阅读(2516)  评论(0编辑  收藏  举报