隐藏顶部状态栏的方法

it2022-05-09  27

1.在info.plist文件中添加 “Status bar is initially hidden”,Boolean设置为“YES”。

2.在info.plist文件中添加“View controller-based status bar appearance”,Boolean设置为“NO”。

注意:此方法是针对iOS7,其他版本不一定适用。

截图如下:

 

转载于:https://www.cnblogs.com/Yun-Longcom/p/5641343.html


最新回复(0)