UIProgressView 详解

1 UIProgressView *pv = [[UIProgressView alloc] init];     // 进度条初始化
2     
3 pv.progressViewStyle = UIProgressViewStyleDefault;      // 蓝色样式
4 pv.progressViewStyle = UIProgressViewStyleBar;          // 白色进度条,主要用于工具条
5 pv.progress = 0.5;          // 设置当前进度

 

posted @ 2013-02-06 15:49  diablo大王  阅读(348)  评论(0编辑  收藏  举报