Hello ,
I'm using latest iOS 8 SDK and Swift.
How can i get the Entity Index-row or section property when i select from a tableview?
I tried the following,
How would i retrieve the index row or section for the core data entity ?..
Any hints or advice is appreciated.
Thanks
Z
I'm using latest iOS 8 SDK and Swift.
How can i get the Entity Index-row or section property when i select from a tableview?
I tried the following,
Code:
override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
if segue.identifier == "showDetail" {
if let indexPath = self.tableView.indexPathForSelectedRow() {
let object = self.fetchedResultsController.objectAtIndexPath(indexPath) as Event
}
(segue.destinationViewController as DetailViewController).detailItem = object
}
How would i retrieve the index row or section for the core data entity ?..
Any hints or advice is appreciated.
Thanks
Z
Last edited: