iphone中的状态栏高度增加

时间:2015-01-07 08:24:05

标签: ios ios8

你好,当我的应用程序运行时,状态栏高度增加,这个问题只出现在ios8中,否则一切正常。所以请帮我解决这个问题。我是iPhone的新手。

1 个答案:

答案 0 :(得分:0)

You can trey this.

Status bar height is, indeed, equals 20.0f points except following cases:

status bar has been hidden with setStatusBarHidden:withAnimation: method and its height equals 0.0f points;
as @Anton here pointed out, during an incoming call outside of Phone application or during sound recording session status bar height equals 40.0f points.
  

[UIApplication sharedApplication] .statusBarFrame.size.height。

I found this in forum.