I'm using xcode 5.1.1 with storyboard. I have a button on main menu and it pops to another view controller with this code
VC *secondVC = [[VC alloc] init];
[self presentViewController:secondVC animated:YES completion: nil];
And there I have back button with this code
[self dismissViewControllerAnimated:YES completion: nil];
And when I pop to secondVC xcode gives me is error:
Presenting view controllers on detached view controllers is discourage
<UINavigationController: 0x8c94510>
.
I'm also having problem with rotation, it doesn't work properly.