How can I detect UIStatusBar hide and show?

后端 未结 4 1069
一个人的身影
一个人的身影 2021-01-18 12:00

I\'m trying to detect hidden and show of iPhone\'s UIStatusBar but failed. Are there any solution can help me, like KVO or something else?

4条回答
  •  离开以前
    2021-01-18 12:30

    In UIApplication class there is a property statusBarHidden...this tell status bar hidden or not...if it return YES mean status bar is hidden...try this.

提交回复
热议问题