开发者

Will Apple reject my app for using setStatusBarOrientation?

开发者 https://www.devze.com 2023-01-17 02:53 出处:网络
ViewController1 uses portrait orientation. ViewController2 uses landscape orientation. If I use: [[UIApplication sharedApplication] setStatusBarOrientation: UIInterfaceOrientationPortrait];

ViewController1 uses portrait orientation. ViewController2 uses landscape orientation. If I use:

[[UIApplication sharedApplication] setStatusBarOrientation: UIInterfaceOrientationPortrait];

Will my app get rejected? If I can't use this call, what is my other option? Simply rotating the开发者_JS百科 images won't be sufficient since I need to use action sheets and alert prompts in the correct orientation.


According to the class documentation (http://developer.apple.com/library/ios/#documentation/uikit/reference/UIApplication_Class/Reference/Reference.html) it would appear to be a documented part of the API and therefore valid to set.

0

精彩评论

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

关注公众号