UIDevice Orientation

前端 未结 8 1538
忘了有多久
忘了有多久 2020-12-13 07:34

I have the following code in a method. When I run this in the simulator the debugger skips right over the code?? What am I missing?

if (([[UIDevice currentDe         


        
8条回答
  •  余生分开走
    2020-12-13 08:23

    Say you are inside a Springboard tweak and want to show something depending on the orientation of the current app, then you can use this (jailbreak only):

    UIInterfaceOrientation o = [[UIApplication sharedApplication] _frontMostAppOrientation];
    

提交回复
热议问题