I’m making an iPhone app that primarily focuses on loading webpages in UIWebviews. To show the user that the web page is currently loading, I’d like the screen to display a loading animation while the page loads, similar to the eBay app:

How can I do this? Or, at least, what UIWebView methods could I use to tell me if the page is loading and that there is internet connection (so it’s not blindly trying to load forever).
You can use MBProgressHUD, a open source component which will do a lot of the work for you.
You’ll need to create a delegate of the UIWebView and respond to the didStartLoading and didFinishLoading messages (that’s when you’ll show an hide the progress view).