I have a small applicati开发者_运维技巧on ipad, portrait mode is locked in the application, The problem occurs when I turn down the IPAD, the display of the application is not running down Can someone help me??
You should implement below method in all of your viewControllers.
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
if(interfaceOrientation==UIInterfaceOrientationPortraitUpsideDown || interfaceOrientation==UIInterfaceOrientationPortrait)
{
return YES;
}
return NO;
}
Hope this help.
精彩评论