在iOS中查看重叠状态栏?

时间:2015-12-02 17:42:58

标签: ios ios8 statusbar overlap

是否可以使视图与状态栏重叠,如下图所示?

enter image description here

1 个答案:

答案 0 :(得分:1)

您可以将当前视图控制器的窗口级别设置为状态栏“上方”,如下所示:

[[[[UIApplication sharedApplication] delegate] window] setWindowLevel:UIWindowLevelStatusBar+1];