- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
tableView.tableFooterView = [[UIView alloc]init];
if (_serviecArr.count == 0) {
tableView.separatorStyle = NO;
}else{
tableView.separatorStyle = YES;
}
return _serviecArr.count;
}
if (_SegmentControl.selectedSegmentIndex == 0) {
if (_personArr.count ==0) {
tableView.separatorStyle = NO;
}else{
tableView.separatorStyle = YES;
}
tableView.separatorStyle = NO;
return _personArr.count;
}
if (_SegmentControl.selectedSegmentIndex == 2) {
if (_evaluArr.count == 0) {
tableView.separatorStyle = NO;
} else{
tableView.separatorStyle = YES;
}
return _evaluArr.count;
}
return 0;
}