IOS Tutorial - UIWebview - Activity Indicator Example (UIActivityIndicator) Xcode 4.5 Pt2

Your video will begin in 20
Skip ad (5)
IA Yourtube Master rapport

Thanks! Share it with your friends!

You disliked this video. Thanks for the feedback!

Added by admin
347 Views
http://www.mybringback.com
Jake's G+ = http://goo.gl/Of4a0
Travis's G+ = http://goo.gl/xGz4q

iOS Tutorial - UIWebview - Activity Indicator Example (UIActivityIndicator) Xcode 4.5 pt2

In this tutorial, we add an activity indicator to our project. The UIActivityIndicator shows that the pre-existing UIWebView is loading or processing information. Typically, you want to use the activity indicator when you don't know the duration of the load time. The activity indicator is controlled by the UIWebView delegate protocol. The delegate is the key to the activity indicator receiving the proper instructions. If the delegate wasn't communicating with the activity indicator, the indicator would probably spin forever or not do anything. Download the final project here: http://www.mybringback.com/tutorial-series/12443/ios-tutorial-uiwebview-uiactivityindicator-example-xcode/

- (void)webViewDidStartLoad:(UIWebView *)webView
{
[_activityIndicator startAnimating];
}

- (void)webViewDidFinishLoad:(UIWebView *)webView
{
[_activityIndicator stopAnimating];
_activityIndicator.hidden = TRUE;
}

If you want to learn more, check out http://www.mybringback.com

Hit us up on G+, facebook, or twitter!

http://www.facebook.com/mybringback
http://www.twitter.com/mybringback
http://www.todaysawesomesauce.com
-------------

Thanks to Nolan for the Intro Music!
Category
World Tutorials Country A - L World Tutorials Country N - T

Post your comment

Comments

Be the first to comment