UINavigationController
を含むUITabBarController
があります。目に見えるUIViewController
の中で、次のように私はプログラム的にUITableView
を作成しています:UITabBarによって部分的に隠されたUITableView
self.voucherTableView = [[UITableView alloc] initWithFrame:[[UIScreen mainScreen] applicationFrame] style:UITableViewStylePlain];
self.voucherTableView.autoresizingMask = UIViewAutoresizingFlexibleHeight|UIViewAutoresizingFlexibleWidth;
しかし、UITabBarはUITableView
を重ねています。
[[UIScreen mainScreen] applicationFrame]
の高さを出力すると、460.00が返されますが、367.00になります。
Interface Builderでは、ビューの高さを自動的に367.00に設定する 'Simulated Metrics'を使用しています。
何か私は、私が必要とする367.00の高さを得るために私が何をしようとしても見逃しています。
self.voucherTableView = [[UITableView alloc] initWithFrame:CGRectMake(0, 0, 320, 367) style:UITableViewStylePlain];
tableViewのautoSizingMasksを確認する必要があります – ender
オリジナルの投稿を 'autoresizingMask'の値に設定して更新しました。 –