iOS: Device orientation on load

前端 未结 16 1939
遥遥无期
遥遥无期 2020-11-28 23:45

It seems that when my app loads, it does not know its current orientation:

UIInterfaceOrientation orientation = [[UIDevice currentDevice] orientation];
if (o         


        
16条回答
  •  谎友^
    谎友^ (楼主)
    2020-11-29 00:07

    In order to obtain the orientation from the status bar it is also important to have the all the orientations enabled at the plist file.

提交回复
热议问题