Landscape Orientation not working
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation {
return YES;
}
I use this snippet for rotation.I am using image view and scro开发者_如何转开发ll view in that view.how to rotate that view...?
Thanks in advance
First set
-(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation { return YES; }`
in mainView controller then is work's for other controller's
In your info.plist add all the four orientations in UISupportedInterfaceOrientations and set all the four orientations true.
精彩评论