I was using UIAlertView but In IOS 8.3 i changed to UIAlertViewController Because UIAlertview was not working But UIAlertViewController Crash with the error
'UIApplicationInvalidInterfaceOrientation',
reason: 'Supported orientations has no common orientation with
the application, and
[ChartsTableViewController2_iPhone shouldAutorotate] is returning YES'
Don't know what to do please help me.
Try to subclass UIAlertController and add this code. Hope it helps.
- (NSUInteger)supportedInterfaceOrientations {
return UIInterfaceOrientationMaskAll;
}
- (BOOL) shouldAutorotate {
return YES;
}
- (UIInterfaceOrientation)preferredInterfaceOrientationForPresentation {
return UIInterfaceOrientationPortrait;
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With