iOS Network Activity Indicator
To show and hide Network Activity Indicator
- (void)showHideNetworkIndicator {
if ([[UIApplication sharedApplication]isNetworkActivityIndicatorVisible]) { //If Network indicator is visible
[[UIApplication sharedApplication] setNetworkActivityIndicatorVisible:false];
} else { //If Network indicator is invisible
[[UIApplication sharedApplication] setNetworkActivityIndicatorVisible:true];
}
}
Swift 5.0: - Deprecated
Reference:
Let's grow together 🌱
Cheers 🍻