Hmmm Figured it out. I needed to run the activity indicator on another 
thread....

[NSThread detachNewThreadSelector: @selector(showIndicator) toTarget:self 
withObject:nil];


Thanks,

On Jan 16, 2010, at 3:46 PM, Philip Vallone wrote:

> Hi, 
> 
> I have a Navigation Based iPhone Application. If I am going from one nav view 
> to another it may take about 3 seconds to view the next view. This is because 
> the the view loads a large xml file into a NSArray and then must render it. 
> My question is, how can I display a UIActivityIndicatorView while the view is 
> being loaded. if I add it right before the my method to load the second view, 
> it doesn't display until after the view loaded.
> 
> 
> // Add UIActiviatyIndicatorView here
> 
> PartViewController *thePartPage = [[PartViewController alloc] 
> initWithNibName:@"PartViewController" bundle:nil];
> [thePartPage setTitle:rowValue];
> [self.navigationController pushViewController:thePartPage animated:YES];
> 
> Thanks,
> 
> Phil
> 
> _______________________________________________
> 
> Cocoa-dev mailing list ([email protected])
> 
> 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:
> http://lists.apple.com/mailman/options/cocoa-dev/philip.vallone%40verizon.net
> 
> This email sent to [email protected]

_______________________________________________

Cocoa-dev mailing list ([email protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to