Will Apple reject my application to use setStatusBarOrientation?

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

[[UIApplication sharedApplication] setStatusBarOrientation: UIInterfaceOrientationPortrait];

Will my application be rejected? If I cannot use this call, what is my other option? Simply rotating the images will not be sufficient, since I need to use the action and warning sheets in the correct orientation.

+3
source share

Source: https://habr.com/ru/post/1765739/


All Articles