I have a UIViewController
with a XIB-file which contains a button. In the IBAction
method of the button I create a new UIViewController
with just one WebView.
UIViewController *onlineViewCtrl = [[UIViewController alloc]init];
[onlineViewCtrl.view addSubview:WebView];
I present this new ViewController:
[self.navigationController pushViewController:onlineViewCtrl animated:YES];
That works as expected but now on iOS versions <6 I have an issue with the autorotation of the screen.
The onlineViewCtrl
does not rotate! Normally I would include the autorotate methods but how should I do that in case of the onlineViewCtrl
where I don't have a own class or xib?
It is interesting that on iOS 6 everything works perfectly. Does anybody know why? But more important how does it work on iOS <6?
Thanks in advance.