title: UIActivityIndicatorView not displaying in UIAlertView - iOS7
body: <p>I need to <code>UIActivityIndicatorView</code> in <code>UIAlertView</code> when loading. But <code>UIActivityIndicatorView</code> is not displaying when I add this with <a href="https://stackoverflow.com/questions/18981040/uiactivityindicatorview-not-displaying-in-uialertview-ios7">UIActivityIndicatorView not displaying in UIAlertView - iOS7</a> in <strong><em>iOS 7</em></strong>. And this is working good in iOS 6 &amp; lowest versions. Below is my code. </p>
  
  <p>Is there any solution ? . thanks. </p>
  
  <pre><code>UIAlertView *alertView = [[UIAlertView alloc]initWithTitle:nil message:@"\n\n\n\nloading.." delegate:self cancelButtonTitle:@"ok" otherButtonTitles:nil];
  [alertView show];
  
  UIActivityIndicatorView *activityIndicator = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleGray];
  activityIndicator.frame= CGRectMake(50, 10, 37, 37);
  activityIndicator.autoresizingMask = UIViewAutoresizingFlexibleTopMargin | UIViewAutoresizingFlexibleRightMargin | UIViewAutoresizingFlexibleBottomMargin | UIViewAutoresizingFlexibleLeftMargin;
  
  [alertView addSubview:activityIndicator];
  
  [activityIndicator startAnimating];
  </code></pre>