In testing my application to see how it will work with an XCode 5 build on iOS 8. The biggest problem I have is that all of our confirmation dialogs cause the application to crash. If I build it on XCode 6 beta, it doesn't crash but the popup is not centered in the window.
Here is the code. It calls the showInView, but does not return. So my question is, am I doing something wrong? If not, what changed, and how do I fix it?
The NSException
is being thrown on the showInView
-- reason NSString * @"Application tried to present modally an active controller <_UIAlertShimPresentingViewController: 0x7fab69793330>." 0x00007fab69747ec0
UIActionSheet* confirmAction = [[UIActionSheet alloc] initWithTitle:NSLocalizedString(@"SiteUpToDate", nil)
delegate:self
cancelButtonTitle:nil
destructiveButtonTitle:NSLocalizedString(@"Yes", nil)
otherButtonTitles:NSLocalizedString(@"No", nil), nil];
[confirmAction showInView:self.view];
[confirmAction release];
Update: I found that this was an issue with the Beta OS & Beta XCode. As soon as iOS 8 was officially released, our issues went away.