问题
When Other Applications uses Location services iOS status bar example given below.
It Causes a black status bar above and it causes some problem on network operations such as sending data to the server / Job request are not working when the black status bar appear only. See Below Screenshot. Sometimes it causes on below screen as well.
When Black bar appears on the screen it's not going away till closes the app and re open it. It causing major functionalities of this app.
回答1:
Select viewcontroller->view and from size inspector uncheck "Safe Area Relative Margins". Then you will have the safe area removed. I think it will solve your black bar issue. Check this for better understanding
Thanks
来源:https://stackoverflow.com/questions/49255573/location-services-and-call-description-status-bar-of-ios-causes-to-appear-black