NSFetchedResultsSectionInfo
全部标签 我被这个陈述的一部分难住了:@property(nonatomic,readonly)NSArray>*sections这个属性属于NSFetchedResultsController类。虽然NSFetchedResultsSectionInfo是一个协议(protocol),id是一个必须符合NSFetchedResultsSectionInfo协议(protocol)的对象类型。id不是协议(protocol),因此将它们括在尖括号中>没有意义。语句NSArray>对我来说没有意义,因为您如何使对象类型id成为NSArray类的协议(protocol)。有人可以阐明这一点吗?谢谢。
我希望能够在我的表格的部分标题中清晰地格式化我的日期。这是我的代码:-(NSString*)tableView:(UITableView*)tableViewtitleForHeaderInSection:(NSInteger)section{idsectionInfo=[[self.fetchedResultsControllersections]objectAtIndex:section];NSDateFormatter*dateFormatter=[[NSDateFormatteralloc]init];[dateFormattersetDateStyle:NSDateForma
Pleasehelpprotocolcodethatdoesnotmakesense我被这句话的一部分难住了:1@property(nonatomic,readonly)NSArrayidNSFetchedResultsSectionInfo>>*sections这个属性属于NSFetchedResultsController类。虽然NSFetchedResultsSectionInfo是一个协议,但id是一个必须符合NSFetchedResultsSectionInfo协议的对象类型。id不是协议,因此将它们括在尖括号中>没有意义。语句NSArray>对我来说没有意义,因为你怎么能让对象类型
Pleasehelpprotocolcodethatdoesnotmakesense我被这句话的一部分难住了:1@property(nonatomic,readonly)NSArrayidNSFetchedResultsSectionInfo>>*sections这个属性属于NSFetchedResultsController类。虽然NSFetchedResultsSectionInfo是一个协议,但id是一个必须符合NSFetchedResultsSectionInfo协议的对象类型。id不是协议,因此将它们括在尖括号中>没有意义。语句NSArray>对我来说没有意义,因为你怎么能让对象类型