1

画面にビューを表示するためにモーダル ビュー コントローラーを使用しています。ビューのセットアップに関するすべてがあり、Interface Builder で調整されています... Interface Builder でのビューの外観

しかし、iPad でアプリを実行すると、調整が行われません。2 番目のスクリーンショットでは、テーブルビューと dateTimePicker の間にギャップがあります。

iPadでの見え方

インターフェイスビルダーでは、ビューサイズをモーダルビューのサイズである 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;
4

1 に答える 1

0

インターフェイスビルダーの日付ピッカーの自動サイズ変更マスクをこれに設定しましたマスクの自動サイズ変更

助けてくれてありがとう。

于 2012-07-30T23:45:49.473 に答える