Uiprogressview and the Uiactivityindicator some similar
But the difference is that
Uiprogressview ability to respond more accurately to progress
Uiactivityindicator you can only show that things are going on.
There is an example in Mail when downloading information in the program, there is a Uiprogressview Show at bottom
-(void) viewdidload{ [Super viewdidload]; //define a progress bar Uiprogressview *PROGRESSV = [[Uiprogressview alloc] init]; progressv.frame = CGRectMake ( 2,; /progress progressv.progress = 0.1; & nbsp /* typedef ns_enum (Nsinteger, Uiprogressviewstyle) { Uiprogressviewstyledefault , //default status Uiprogressviewstylebar, //General for toolbar }; */ Progressv.progressviewstyle = uiprogressviewstyledefault; //Set the color of the fill section (assuming the progress to 30%, the 30% color is this property) Progressv.progresstintcolor = [Uicolor greencolor]; //Set the color of the unfilled part (assuming the progress to 30%, the 70% color is this property) Progressv.tracktintcolor = [Uicolor redcolor]; //Set the fill part of the picture after setting the picture Progresstintcolor invalid &NBSp Progressv.progressimage = [UIImage imagenamed:@ "1"]; //Set picture of unfilled part after setting picture Tracktintcolor invalid Progressv.trackimage = [UIImage imagenamed:@ "2"]; [self.view addsubview: PROGRESSV];} Key progress the current progress value of the property and whether the setting requires animation-(void) setprogress: (float) Progress animated: (BOOL) animated{}
iOS Foundation-uiprogressview