id <NSFetchedResultsSectionInfo> sectionInfo = nil;
sectionInfo = [[self.resultsController sections] objectAtIndex:section];
return [sectionInfo numberOfObjects];
NSFetchedResultsSectionInfo 它是一个NSFetchedResultController组装成的对象,用来封装section的对象集合。
包含了几个成员,indexTitle,name,numberofObjects和objects,
其中name指的是section名,indexTitle指的是索引名,numberofObject指的是section下面的对象数量(如果用UItableView显示的话,这个一般就是section下面row的数量),objects是对象数组。
官方文档:http://developer.apple.com/library/iOS/#documentation/CoreData/Reference/NSFetchedResultsSectionInfo_Protocol/Reference/Reference.html