我知道这些指标不止一个。 感谢。
答案 0 :(得分:83)
<强>夫特强>
UIApplication.sharedApplication().networkActivityIndicatorVisible = true
Swift 4.x , Swift 3.x
UIApplication.shared.isNetworkActivityIndicatorVisible = true
答案 1 :(得分:64)
[[UIApplication sharedApplication] setNetworkActivityIndicatorVisible:YES];