Re: [iphone] Load time and Nav View Controller.
Re: [iphone] Load time and Nav View Controller.
- Subject: Re: [iphone] Load time and Nav View Controller.
- From: Philip Vallone <email@hidden>
- Date: Sat, 16 Jan 2010 16:00:14 -0500
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@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
_______________________________________________
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