I am using the fetchedResultsController with the sectionNameKeyPath as below.
let fetchedResultsController = NSFetchedResultsController(fetchRequest: fetchRequest, managedObjectContext: self.managedObjectContext, sectionNameKeyPath: "relName.APropertyName", cacheName: nil)
the section name key is the relationship to the parent table and its one of the property name in the parent table.
I have a custom section header by overriding the below func tableView(tableView: UITableView, viewForHeaderInSection section: Int) -> UIView?
in this header i would like to access the parent entity and its few other properties ( not just the property mentioned in the sectionNameKeyPath)
I have not enforced any uniqueness on the parent entity with the property "APropertyName" .
I would like to query the parent entity when i write the custom header for the section. How do I achieve this?
Thanks