首页 > 其他 > 详细

UIProgressView 详解

时间:2014-05-08 13:59:45      阅读:448      评论:0      收藏:0      [点我收藏+]

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

bubuko.com,布布扣
//进度条
    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)
bubuko.com,布布扣

UIProgressView改变高度

 

bubuko.com,布布扣

 

UIProgressView 详解,布布扣,bubuko.com

UIProgressView 详解

原文:http://www.cnblogs.com/ygm900/p/3713872.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!