开发者

display problem in UIView iPad

开发者 https://www.devze.com 2023-03-17 03:09 出处:网络
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

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号