How to react to a UIAlertView

An alert view has the clickedButtonAtIndex property. The first clicked button is 0, the next one 1, and so forth. If you conform to the UIAlertViewDelegate protocol you can implement the following method and react to each pressed button accordingly, or…

How to show the Network Activity Indicator (spinning wheel in the iOS status bar)

Here’s how you start it: UIApplication *application = [UIApplication sharedApplication]; application.networkActivityIndicatorVisible = YES; And this is how you stop it: UIApplication *application = [UIApplication sharedApplication]; application.networkActivityIndicatorVisible = YES; Comes in handy when displaying a UIWebView or performing any other activity that requires the user to “hang in there for a bit”. If you want to […]