UITableView分隔符问题

时间:2011-04-22 13:13:43

标签: iphone objective-c ios uitableview

mailSubscritionTable.separatorColor = [UIColor blueColor];


- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {

    return 5;

}

但是,我在这里得到更多的分隔符,我希望只显示5个分隔符。

1 个答案:

答案 0 :(得分:7)

这非常简单:

tableView.tableFooterView = [[[UIView alloc] init] autorelease];