自定义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 详解

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-05
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-11-08
  • 2022-12-23
  • 2021-04-26
  • 2021-07-15
  • 2022-12-23
相关资源
相似解决方案