title: Adding a UIActivityIndicator to a modal view (ELCimagepicker)
body: <p>I've added the ELCimagepicker (https://github.com/Fingertips/ELCImagePickerController) to my project and it works perfectly, allowing the user to select multiple images for a slideshow.  But when you click 'Save', there can be a lengthy delay depending on how many photos were added.</p>
  
  <p>I've been trying to add a UIActivityIndicator when the user clicks 'Save', but having trouble due to the modal view that is presented. I can call a method from the activity that ELCimagepicker presents (ELCImagePickerController) and this gets actioned by the activity handling the presenting of the image picker.  But whenever I try to add to the view, it isn't shown as the modal is on top of the activity indicator.</p>
  
  <p>I've tried using bringSubviewToFront, I've tried adding the code directly to the imagepicker method file with [[self parentViewController] addSubView], but no luck.  </p>
  
  <p>Here's the latest code I tried: (indicator is declared in the .h file as UIActivityIndicator *indicator)</p>
  
  <pre><code> indicator = [[UIActivityIndicatorView alloc]initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleGray];
  indicator.hidden=false;
  
  [self.navigationController.view addSubview:self.indicator];
  [self.navigationController.view bringSubviewToFront:self.indicator];
  
  [indicator startAnimating];
  
  if([delegate respondsToSelector:@selector(elcImagePickerController:showIndicator:)]) {
      [delegate performSelector:@selector(elcImagePickerController:showIndicator:) withObject:self withObject:@"test"];
  }
  </code></pre>
  
  <p>Has anyone had any success with adding a UIActivityIndicator on top of the ELCimagepicker, or another modal view handled by another class?  </p>
  
  <p>I've tried MBProgressHUD but couldn't get that working quite right either - it would show up when I used it in the ELCimagepicker class, but crashed on removal with:</p>
  
  <pre><code>bool _WebTryThreadLock(bool), 0x42368e0: Tried to obtain the web lock from a thread other than the main thread or the web thread. This may be a result of calling to UIKit from a secondary thread. Crashing now...
  </code></pre>
  
  <p>Any help would be fantastic.  </p>
  
  <p>Thanks.</p>