UIProgressView 详解
自定义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改变高度
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】凌霞软件回馈社区,博客园 & 1Panel & Halo 联合会员上线
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步