메신저 섹션 헤더를 uitableview에 설정하는 데 문제가 있습니다. 그게 뭔가 정말 간단합니다. 대신 다른 부분에 대해 서로 다른 헤더를 표시UITableView의 섹션 헤더에 문제가 있습니다
은 나를
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
WorldCupAppDelegate *appDelegate = [UIApplication sharedApplication].delegate;
return [appDelegate.matchFixtures count];
}
- (NSString *)tableView:(UITableView *)tableView titleForHeaderInSection:(NSInteger)section {
WorldCupAppDelegate *appDelegate = [UIApplication sharedApplication].delegate;
Fixtures *fixtures = [appDelegate.matchFixtures objectAtIndex:section];
return fixtures.matchDate;
}
appDelegate.matchFixtures 카운트가 NSLog?를 통해 인쇄하여 어떤 가치가 있는지 확인 했습니까? fixtures.matchDate와 동일합니까? –
모든 matchFixture에는 다른 matchDate가 있습니까? – DyingCactus