title: iPhone SDK - WebView activity indicator
body: <p>I have a big problem with the UIWebView in iPhone SDK.
  I have a TabBarApplication with one WebView on each Tab (except the first).</p>
  
  <p>Because it takes quiet a while to load the views I'd like to show an activity indicator.</p>
  
  <p>Here is the code I'm using in order to do that:</p>
  
  <pre><code>-(void)webViewDidStartLoad:(UIWebView *) portal {
  </code></pre>
  
  <p>[UIApplication sharedApplication].networkActivityIndicatorVisible = YES;
   }</p>
  
  <pre><code>-(void)webViewDidFinishLoad:(UIWebView *) portal{
   [UIApplication sharedApplication].networkActivityIndicatorVisible = NO; 
  }
  </code></pre>
  
  <p>It doesn't work this way... My WebView in the first tab is called "portal", that's why I entered it above, but the same problem exists if I use WebView.</p>
  
  <p>Any ideas? Can't be true that this is soooo difficult.
  I'm searching for a clue quiete a while now and found nothing which helped me to build such a (think it's easy) activityindicator.</p>
  
  <p>Thanks a lot for your effort!</p>
  
  <p>Greets from Germany
  Tobias</p>