سؤال

If you have no status bar is it still safe to check the orientation like this?

_orientation = [[UIApplication sharedApplication] statusBarOrientation];
هل كانت مفيدة؟

المحلول

Yes. The status bar is always there, it is just hidden or showing. It's orientation still changes regardless of its visibility status, so that it is ready if you decide to unhide it and it doesn't need to rotate when you do.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top