Ios iphone中状态栏高度增加
您好,当我的应用程序正在运行时,状态栏高度会增加。此问题仅在ios8中出现,否则一切正常。所以请帮我解决这个问题。我是iPhone新手Ios iphone中状态栏高度增加,ios,ios8,Ios,Ios8,您好,当我的应用程序正在运行时,状态栏高度会增加。此问题仅在ios8中出现,否则一切正常。所以请帮我解决这个问题。我是iPhone新手 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
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
只有iOS 8,在iPhone 6或6 Plus中。将启动屏幕添加到项目中。添加新文件->用户界面->启动屏幕。然后在目标的常规字段中,在启动屏幕文件字段中选择它-667h@2x750X1334和iPhone6+默认值-667h@3x1241x2208在iOS 8和iPhone6上只能工作,启动屏幕始终是一个xib文件。此文件是默认的-667h@2x将被忽略。非常感谢@Onik。如果我使用launchscreen.xib并在iPhone6+中运行应用程序,那么UI组件的计算是错误的。我不明白为什么UI会放错位置?
I found this in forum.