IO6 以下のコードを使用して回転を強制しました。
-(void) viewWillAppear:(BOOL)animated
{
[super viewWillAppear:animated];
UIApplication* application = [UIApplication sharedApplication];
if (application.statusBarOrientation != UIInterfaceOrientationPortrait)
{
UIViewController *c = [[UIViewController alloc]init];
[c.view setBackgroundColor:[UIColor redColor]];
[self.navigationController presentViewController:c animated:NO completion:^{
[self.navigationController dismissViewControllerAnimated:NO completion:^{
}];
}];
}
}
しかし、IOS7 では正しく動作しません。View Controller を回転させますが、再び画面に空白のビューを設定します...
IOS 7でこの問題を解決するのを手伝ってくれませんか...