Reputation: 55
I am new to iphone,I have a small doubt.I am working on audioPlayer project here In my screen I have a button download
this is the screen that is
when we click download this code executes
(IBAction)gotoProgressViewController:(id)sender { @try {
//ShowProgressViewCont is initialized with the nibName
showProgressViewController = [[ShowProgressViewCont alloc]initWithNibName:@"ShowProgressViewCont" bundle:nil];
//UINavigationController is initialized with the rootViewController showProgressViewController
navigationController = [[UINavigationController alloc]initWithRootViewController:showProgressViewController];
//The transition style of the navigationController is set to UIModalTransitionStyleCrossDissolve
navigationController.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;
//Presents a modal view managed by the given view controller to the user.Here navigation Controller that manages the modal view.
[self presentModalViewController:navigationController animated:YES];
} @catch(NSException * e){NSLog(@"Exception At: %s %d %s %s %@",FILE,LINE,PRETTY_FUNCTION,FUNCTION,e);}@finally{} }
then after click download it takes 5 to 6 sec for appear the next screen that is
here it consists initially having download images
my actual question is can we reduce the reaction time when we click on download button in initial screen with in 2 or 3seconds i want the second screen
Upvotes: 0
Views: 105
Reputation: 21221
Yes you can reduce the download time, by downloading the image on a second thread, please consider this example lazy table
it downloads the images on a second thread, increasing the responsiveness of the application
Upvotes: 1