How to support landscape/Portrait orientation only for one UIView?

You should use shouldAutorotateToInterfaceOrientation in your view controller, and return YES for view controllers that should support both Landscape/Portrait.

You should use shouldAutorotateToInterfaceOrientation in your view controller, and return YES for view controllers that should support both Landscape/Portrait http://developer.apple.com/library/ios/documentation/uikit/reference/UIViewController_Class/Reference/Reference.html#//apple_ref/occ/instm/UIViewController/shouldAutorotateToInterfaceOrientation.

Well I override the shouldAutorotateToInterfaceOrientation: to return the "YES", but no luck, I only need one view to support the landscape/Portrait orientation...,so I did not override the shouldAutorotateToInterfaceOrientation in other view controllers. – Sam Oct 23 '10 at 12:10 I guess your case is : "All child view controllers in your UITabBarController or UINavigationController do not agree on a common orientation set. To make sure that all your child view controllers rotate correctly, you must implement shouldAutorotateToInterfaceOrientation for each view controller representing each tab or navigation level.

Each must agree on the same orientation for that rotate to occur. That is, they all should return YES for the same orientation positions. " developer.apple.Com/library/ios/#qa/qa2010/qa1688.

Html – Deniz Mert Edincik Oct 23 '10 at 19:25 I think you should rotate manually with self.view.transform. And getting rotation alerts by deviceNotifications. – Deniz Mert Edincik Oct 23 '10 at 19:32.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions