title: UIActivityIndicatorView doesn't stop for UIWebView
body: <p><strong>EDIT: I SOLVED IT</strong></p>
  
  <p>I solved it.
  I changed:</p>
  
  <pre><code>@property(nonatomic,retain) UIActivityIndicatorView *activityIndicator;
  </code></pre>
  
  <p>to</p>
  
  <pre><code>@property(nonatomic,retain) IBOutlet UIActivityIndicatorView *activityIndicator;
  </code></pre>
  
  <p><strong>MY QUESTION:</strong></p>
  
  <p>I am making a simple UIWebView app and I want the indicator to stop spinning when it is done loading the webpage. I checked "hide when done" in the storyboarding interface and I have connected the indicator to the view controller (activityIndicator). It still doesn't stop. In my header file, I have this:</p>
  
  <pre><code>@interface ViewController : UIViewController&lt;UIWebViewDelegate&gt;{
  IBOutlet UIBarButtonItem *bBack, *bForward, *toolbarStop, *toolbarRefresh;
  IBOutlet UIActivityIndicatorView *_activityIndicator;
  
  BOOL internetOK;
  NSTimer *timer;
  
  }
  -(void)tryInternet;
  -(void)loading;
  -(void)startAnimating;
  -(void)stopAnimating;
  -(void)verifyInternet;
  -(IBAction)refresh:(id)sender;
  -(IBAction)dontTouchMe:(id)sender;
  -(IBAction)refreshWebView:(id)sender;
  @property (weak, nonatomic) IBOutlet UIWebView *webview;
  @property(nonatomic,retain) UIActivityIndicatorView *activityIndicator;
  </code></pre>
  
  <p>And in my .m file, I have this:</p>
  
  <pre><code>- (void)webViewDidStartLoad:(UIWebView *)webView {
      [_activityIndicator startAnimating];
  }
  
  - (void)webViewDidFinishLoad:(UIWebView *)webView {
      [_activityIndicator stopAnimating];
  </code></pre>
  
  <p>Why doesn't this work? Do you have any ideas?</p>