Sorting NSFetchedResultsController by Swift Computed Property on NSManagedObjectSubclass

后端 未结 1 1097
自闭症患者
自闭症患者 2020-12-16 17:48

I\'m building an app using Swift with Core Data. At one point in my app, I want to have a UITableView show all the objects of a type currently in the Persistent

相关标签:
1条回答
  • 2020-12-16 18:00

    As was pointed out by Martin, you cannot sort on a computed property. Just update a new stored property of the club every time a shot is taken.

    0 讨论(0)
提交回复
热议问题