Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
- {
- if ([[segue identifier] isEqualToString:@"showDetail"]) {
- NSIndexPath *indexPath = [self.catTableView indexPathForSelectedRow];
- NSManagedObject *object = [[self fetchedResultsController] objectAtIndexPath:indexPath];
- [[segue destinationViewController] setDetailItem:object];
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement