このフォーラム(および他のフォーラム)を検索しましたが、まだ解決策が見つかりません。ランドスケープモードのアプリがあります。すべて問題ありませんが、別のビュー(UITableを使用)に変更すると、ポートレートモードになり、回転しません。私は一日中試しましたが、それを理解することはできません。
@property (nonatomic, strong) IBOutlet UIView *aView;
@property (nonatomic, strong) IBOutlet UIViewController *aViewcontroller;
-----
aViewcontroller = [[UIViewController alloc] initWithNibName:@"ViewController" bundle:nil];
aViewcontroller.view = aView;
-----
[self presentModalViewController:aViewcontroller animated:YES];
//got my view in portrait orientation.
.xibファイルのビューはすべてOrientation:Landscapeに設定されています。これは簡単なはずですよね?
よろしくお願いします!