Take the 2-minute tour ×

I want to launch a mobile website as an app on iPhone so I've use the UIWebView component. I want my app to support orientation change,so I've written the following code but I'm not getting expected result.

Please suggest me what changes to be made in order to fix the problem.

Here is my code.

share|improve this question

2 Answers 2

which version is your test device? you should notice that

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation is deprecated in ios6

share|improve this answer
test device version of iOS is 5.1.1 –  bitsbuffer Oct 29 '12 at 8:04

Your Answer


