UITableView分隔符问题

PJR*_*PJR 5 iphone objective-c uitableview ios

mailSubscritionTable.separatorColor = [UIColor blueColor];


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

    return 5;

}
Run Code Online (Sandbox Code Playgroud)

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

Bar*_*ski 7

这非常简单:

tableView.tableFooterView = [[[UIView alloc] init] autorelease];
Run Code Online (Sandbox Code Playgroud)