In application i want to support only UIInterfaceOrientationLandscapeRight. So i have done two things for that. 1) Set Initial interface Orientation to UIInterfaceOrientationLandscapeRight in proj plist file. 2) writeen this code in each view controller. - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { return(interfaceOrientation==UIInterfaceOrientationLandscapeRight); }
But when I switch to another view using removeFromSuperview and addSubview methods to replace the old view with the new view the new view is not oriented properly.
How to solve this problem ???
