iphone - when iam click on download button it takes long time to goto next screen -
i new iphone,i have small doubt.i working on audioplayer project here in screen have button download screen
when click download code executes
-
(ibaction)gotoprogressviewcontroller:(id)sender { @try {
//showprogressviewcont initialized nibname showprogressviewcontroller = [[showprogressviewcont alloc]initwithnibname:@"showprogressviewcont" bundle:nil]; //uinavigationcontroller initialized rootviewcontroller showprogressviewcontroller navigationcontroller = [[uinavigationcontroller alloc]initwithrootviewcontroller:showprogressviewcontroller]; //the transition style of navigationcontroller set uimodaltransitionstylecrossdissolve navigationcontroller.modaltransitionstyle = uimodaltransitionstylecrossdissolve; //presents modal view managed given view controller user.here navigation controller manages 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 takes 5 6 sec appear next screen is
here consists having download images
my actual question can reduce reaction time when click on download button in initial screen in 2 or 3seconds want second screen
yes can reduce download time, downloading image on second thread, please consider example lazy table
it downloads images on second thread, increasing responsiveness of application
Comments
Post a Comment