Mat*_*all 13

UIProgressView文档中所定义,UIProgressView具有progress属性.只需在创建视图时设置:

UIProgressView *view = [[UIProgressView alloc] initWithProgressViewStyle:whateverStyle];
view.progress = 0.75f;
// Do whatever you want with the view
// (and don't forget to -release it later)
Run Code Online (Sandbox Code Playgroud)

UIProgressView进度值设置为75%初始化a