ログインフォームでユーザーが認証されたときに、UIWebViewにモーダルでWebページをロードするiPadアプリを開発しています。これはうまく機能しますが、デバイスを横向きモードに回転させると、Webビューは画面の75%しかカバーしません。
これが私のログインビューコントローラーからのコードです:
// Load storyboard for easy instatiation of the login view controller
UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"MainStoryboard_iPad" bundle:nil];
WebViewController *webController =
(WebViewController *)[storyboard instantiateViewControllerWithIdentifier:@"WebView"];
// Present the embedded browser in fullscreen.
[webController setModalPresentationStyle:UIModalPresentationFullScreen];
[self presentViewController:webController animated:YES completion: nil];