I want to override the following methods of NSFetchedResultsController:
func object(at indexPath: IndexPath) -> ResultType {...}
func indexPath(forObject object: ResultType) -> IndexPath? {...}I do it like this: (swift 3, xcode8)
class MyFetchedResultsController<ResultType: NSFetchRequestResult>: NSFetchedResultsController<ResultType> {
}but it give out this error:
inheritance from a generic Objective-C class 'NSFetchedResultsController' must bind type parameters of 'NSFetchedResultsController' to specific concrete types
How to handle this issue? thanks for you help.