ShowActivityIndicator();and hide it with
If you work with network in your app, then this little code will be an invaluable asset. This will save you a lot of retyping. Just put this in a header file that will be imported in all your files,
#define ShowActivityIndicator() [[UIApplication sharedApplication] setNetworkActivityIndicatorVisible: YES]; #define HideActivityIndicator() [[UIApplication sharedApplication] setNetworkActivityIndicatorVisible: NO];
Angelo Villegas is a software developer building native iOS apps using Objective-C and Swift. I enjoy thinking that the apps I built make the users’ life easier.