I have a UICollectionView , and when the user clicks on the cell, I present another view controller in the UINavigationController using the storyboard.
- (void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath { [self performSegueWithIdentifier:@"editBookIPad" sender:indexPath]; } - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {

Now my problem is that segue.desinationViewController returns nil (as the comment says in the code snippet).
Just for debugging, I changed the UINavigationController to another view controller, and I had no problems. I donβt know if the transition from modal to pressing will help, since the transition style will help, since it is impossible to press the UINavigationController (a failure occurs, which says that it is).
I cleaned up the project and build folder and restarted my computer (and therefore Xcode).
Here's what it looks like when the application starts:

When searching for similar problems, I did not find anything about this. Most of the other questions related to the properties set on the destination view controller to be zero (for example, this ).
I am using Xcode 5.1.1 and iOS 7.0 as a development goal.
Edit1
The same thing happens in all parts of my application (everywhere a UINavigationController appears modally). However, this only happens in some cases, but each time the segue.destinationViewController is still nil .
Edit2
I replaced the prepareForSegue code with this (by doing this manually):
UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"Storyboard" bundle:nil]; UINavigationController *navCon = [storyboard instantiateViewControllerWithIdentifier:@"AllBooksVCDetails"]; // The problematic navigation controller navCon.modalPresentationStyle = UIModalPresentationFormSheet; BKSBookDetailsViewController *detailsVC = (id)[navCon topViewController]; detailsVC.stack = self.stack; detailsVC.editingMode = 1; detailsVC.bookToEdit = [self.fetchedResultsController objectAtIndexPath:indexPath]; [self presentViewController:navCon animated:YES completion:nil]; [self.collectionView deselectItemAtIndexPath:indexPath animated:YES];
And it works. So I think the problem is the storyboard somehow.