• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Show UIActivityIndicatorView asynchronously
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Show UIActivityIndicatorView asynchronously


  • Subject: Show UIActivityIndicatorView asynchronously
  • From: Philip Vallone <email@hidden>
  • Date: Thu, 28 Apr 2011 06:26:17 -0400

Hi,

I have a UIViewController that can take a few seconds to load. The view searches an XML file and eventually displays the resuts.  I want to show a UIActivityIndicatorView while the view loads. Unfortunately they are on the same thread. How can I get the UIActivityIndicatorView to display befiore the view loads? With the below code, the UI freezes up (indicator never shows) until the search is done.

[self.activityIndicator startAnimating];

TitleSearchResultsViewController *controller = [[TitleSearchResultsViewController alloc] initWithNibName:@"TitleSearchResultsViewController" bundle:nil];
[controller setTitle:@"Search Results"];


Thanks,

Phil





_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Show UIActivityIndicatorView asynchronously
      • From: Alexander Spohr <email@hidden>
  • Prev by Date: Re: How to store main window frame to user defaults?
  • Next by Date: Re: How to store main window frame to user defaults?
  • Previous by thread: Re: How to store main window frame to user defaults?
  • Next by thread: Re: Show UIActivityIndicatorView asynchronously
  • Index(es):
    • Date
    • Thread