UIProgressView 详解

自定义progressView   包括背景图片和进度条的图片以及进度条的高度。

//进度条

    UIProgressView *aProgressView = [[UIProgressView alloc] initWithProgressViewStyle: UIProgressViewStyleDefault];

    CGRect frame = aProgressView.frame;

    frame.size.width = SCREEN_WIDTH-(10+106/2+30/2)-130/2;

    frame.origin.x = 10+106/2+30/2;

    frame.origin.y = (30+28+30+20+16)/2;

    aProgressView.frame = frame;

    aProgressView.trackImage = kImageLightGray;

    aProgressView.progressImage = kImageOrange;

    aProgressView.progress = 0.1f;

    CGAffineTransform transform =CGAffineTransformMakeScale(1.0f,1.0f);

    aProgressView.transform = transform;

    [self.contentView addSubview: aProgressView];

    SQRelease(aProgressView)

UIProgressView改变高度

 

UIProgressView 详解

 

你可能感兴趣的:(progress)