我的应用主要支持iOS6+。在考虑iOS5时,我添加了以下判断。
if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 6.0) {
self.modalPresentationStyle = UIModalPresentationFullScreen;
[self presentViewController:readerViewController animated:YES completion:NULL];
}
else {
self.modalPresentationStyle = UIModalPresentationFullScreen;
[self presentModalViewController:readerViewController animated:YES];
}
但是,模态视图在我的横向应用程序中垂直显示。我的意思是,我的应用程序是横向的,模态视图只是“躺在”那里,而不是我设置的全屏,只是覆盖部分屏幕,而未覆盖的是黑色。
我想知道是否有人可以提供帮助。谢谢转发。