画面にビューを表示するためにモーダル ビュー コントローラーを使用しています。ビューのセットアップに関するすべてがあり、Interface Builder で調整されています...
しかし、iPad でアプリを実行すると、調整が行われません。2 番目のスクリーンショットでは、テーブルビューと dateTimePicker の間にギャップがあります。
インターフェイスビルダーでは、ビューサイズをモーダルビューのサイズである 540x620 に設定しています。アプリを実行すると見た目が異なる理由はありますか?
編集:ビューを提示する方法は次のとおりです
// Create the variable that represents the app delegate
KMAppDelegate *delegate = (KMAppDelegate *)[[UIApplication sharedApplication] delegate];
// Create view controller
ModalDetailVC *modalDetailVC = [[ModalDetailVC alloc] initWithNibName:@"ModalDetailVC" bundle:nil];
// Call the pushViewController:animated method from the navigationController variable inside the delegate
[delegate.navigationController pushViewController:modalDetailVC animated:YES];
modalDetailVC.view.superview.frame = CGRectMake(0, 0, 540, 620);
modalDetailVC.view.superview.center = self.view.center;