我使用的是UIAlertView,但在IOS8.3中,我更改为UIAlertViewController,因为UIAlertview不工作,但UIAlertViewController与错误崩溃
'UIApplicationInvalidInterfaceOrientation',
reason: 'Supported orientations has no common orientation with
the application, and
[ChartsTableViewController2_iPhone shouldAutorotate] is returning YES'不知道该怎么办请帮帮我。
发布于 2015-04-18 10:58:01
尝试将UIAlertController子类并添加此代码。希望能帮上忙。
- (NSUInteger)supportedInterfaceOrientations {
return UIInterfaceOrientationMaskAll;
}
- (BOOL) shouldAutorotate {
return YES;
}
- (UIInterfaceOrientation)preferredInterfaceOrientationForPresentation {
return UIInterfaceOrientationPortrait;
}https://stackoverflow.com/questions/29716011
复制相似问题