title: IPhone UIActivityIndicator won't display until after process has completed
body: <p>I've been researching this for a few days, but nothing I've found works.</p>
  
  <p>Here's the desired process: User presses the enter button on a pop-up window -> ActivityIdicator appears -> saving process occurs -> ActivityIndicator disappears.</p>
  
  <p>However, for some reason the ActivityIndicator does not show up until after the process is complete, rendering it completely useless.</p>
  
  <p>I attempted to follow the process described here: <a href="https://stackoverflow.com/questions/2919879/uiactivityindicator-not-working-properly">UIActivityIndicator not working properly?</a></p>
  
  <p>Here is the code for the pop-up window</p>
  
  <pre><code>-(void)alertView:(UIAlertView *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex {
      // the user clicked one of the Enter/Cancel buttons
      [self performSelector:@selector(DisplaySpinner) withObject:nil afterDelay:0];
      if (buttonIndex == 1)
      {
          [self performSelector:@selector(EnterButtonClicked) withObject:nil afterDelay:0];
      }
      else
      {
          NSLog(@"Name Cancel Clicked");
      }
      [NameField resignFirstResponder];
      }
  </code></pre>
  
  <p>Here is the code for the DisplaySpinner method:</p>
  
  <pre><code>-(void)DisplaySpinner{
      NSAutoreleasePool *pool = [[NSAutoreleasePool alloc]init];
  
      [self.view addSubview:loadingIndicator];
      [loadingIndicator startAnimating];
  
      [pool release];
  }
  </code></pre>
  
  <p>The EnterButtonClicked Method contains the saving process. Despite running in seperate processes, The ActivityIndicator doesn't show up until after the process is complete.</p>
  
  <p>Any suggestions?</p>