开发者

display problem in UIView iPad

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜