I am using Xcode v4.6.1 and am trying to learn to make apps for the iPhone. I am creating a 'to do list'. The opening view is a tableView embedded in a navigation controller; 'Checklist'. The navigation controller has an add bar button which on tap will display a scene (another tableView embedded in a navigation controller); 'Add Item') . The Add Item scene's navigation controller has a 'Cancel' bar button. When the 'Cancel' button is tapped, I get the following message:
"Attempt to dismiss from view controller <UINavigationController: 0x713d260> while a presentation or dismiss is in progress!"
The code for dismissing the 'Add Item scene is a delegate from the 'Add Item' scene. The code below is a delegate protocol declared in the controller for the 'Add Item' tableView.
- (void)itemDetailViewControllerDidCancel:(ItemDetailViewController *)controller
[self dismissViewControllerAnimated:YES completion:nil];
Any suggestions would be appreciated.