iOS Foundation-uiprogressview

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.