0
私はMore iPhone Programming 3を読んでいるので、<の表記が何であるか覚えていません。私はそれがクラスのプロトコルに準拠することを知っていますが、この例ではコアデータセクションのNSFetchedResultsControllerについて話しています。コードは次のとおりです。Objective-C "<...>"表記
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
id <NSFetchedResultsSectionInfo> sectionInfo = [[fetchedResultsController sections] objectAtIndex:section];
return [sectionInfo numberOfObjects];
ありがとうございます!