how to set Orientation after launch on iPhone

南楼画角 提交于 2019-11-27 22:49:53

问题


i Will like to know how to auto rotate iphone after launch.

my launch image is in portraits but the app itself are in landscape.

after launch the orientation are still in portraits instead of auto rotate to landscape.

this is my info.plist

in my root view controller

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
    // Return YES for supported orientations
    return ((interfaceOrientation == UIInterfaceOrientationLandscapeLeft) || (interfaceOrientation == UIInterfaceOrientationLandscapeRight));

}

回答1:


as shown in the image, set the marked value for landscape mode..




回答2:


In iphone Launch images are always in portrait mode, You can make launch image such that it looks like it is in landscape but actually it will be in portrait mode

While ipad has option for launch image in both mode landscape and portrait



来源:https://stackoverflow.com/questions/9060019/how-to-set-orientation-after-launch-on-iphone

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!