问题
By default the launch screen provides a status bar. Is it possible to hide the status bar in launch screen like a Twitter app ( iOS ).
回答1:
To Hide Status Bar initially on launch screen, set Hide status bar
check mark on ✓
OR
In Your Info.plist add: Status bar is initially hidden
YES
.
The above both option having same impact.
Additionally
To Hide Status Bar on specific ViewController override
prefersStatusBarHidden
with true
override var prefersStatusBarHidden: Bool{
return true
}
来源:https://stackoverflow.com/questions/48718697/hide-status-bar-in-launch-screen