Swift에서 NSFetchedResultcController 섹션의 객체 수를 얻으려면 어떻게해야합니까? 그런 다음 section
를 전달할 수NSFetchedResultsController 섹션의 객체 수를 얻는 방법 Swift
if let s = self.fetchedResultsController?.sections as? [NSFetchedResultsSectionInfo]
:
if let s = self.fetchedResultsController?.sections as? NSFetchedResultsSectionInfo {
}
나에게 Cannot downcast from '[AnyObject]' to [email protected] protocol type NSFetchedResultsSectionInfo
var d = self.fetchedResultsController?.sections[section].numberOfObjects
을주고있다 당신은 Array
NSFetchedResultsSectionInfo
의 객체에 self.fetchedResultsController?.sections
캐스팅 할 필요가 저에게 does not have member named 'subscript'