UISplitViewController and orientation - iOS < 5.0

前端 未结 2 826
借酒劲吻你
借酒劲吻你 2021-01-18 08:00

I am using a splitviewcontroller as the rootview of my application. I need to show the login and registration views as a modal view on top of the splitviewcontroller. When i

2条回答
  •  北海茫月
    2021-01-18 08:31

    If I remember correctly, iOS misreports the actual orientation until the first rotation.

    Also IIRC, using [[UIApplication sharedApplication] statusBarOrientation] circumvents this problem.

提交回复
热议问题