IOS hide the status bar displays network activity and status

The event will mark the network IOS show and hide the status bar

// sending a request to the server status bar displays network activity indicator:

[[UIApplication sharedApplicationsetNetworkActivityIndicatorVisible:YES];

// This is the code for sending the server request

// end of the request status bar is hidden network activity indicator:

[[UIApplication sharedApplicationsetNetworkActivityIndicatorVisible:NO];

Reproduced in: https: //www.cnblogs.com/someonelikeyou/p/4015937.html

Guess you like

Origin blog.csdn.net/weixin_33920401/article/details/94538117