码迷,mamicode.com
首页 > 其他好文 > 详细

UIProgressView 详解

时间:2014-05-08 14:00:31      阅读:329      评论:0      收藏:0      [点我收藏+]

标签:style   blog   class   code   java   color   

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

标签:style   blog   class   code   java   color   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!