进度条 UIProgressView 设置背景色及高度
来源:互联网 发布:gg bd ad 720x90 2.js 编辑:程序博客网 时间:2024/05/12 03:57
iOS6,7均可使用,iOS7下更改进度条高度即可
//progress
CGRect rtTemp = CGRectMake(nSpaceX, nSpaceY * 2, popBgView.frame.size.width - 2 * nSpaceX, 20); if (isPad) { rtTemp.size.height = 30; } UIProgressView* progressView = [[UIProgressView alloc] initWithFrame:rtTemp]; progressView.backgroundColor = [UIColor clearColor]; [progressView setProgress:self.fPercent]; //更改进度条高度 progressView.transform = CGAffineTransformMakeScale(1.0f,3.0f); UIImage* imgTemp = [UIImage imageNamed:@"progress_off.png"]; CGFloat width = imgTemp.size.width/2.0; CGFloat height = imgTemp.size.height/2.0; UIImage *imgTrack = [[UIImage imageNamed:@"progress_off.png"]resizableImageWithCapInsets:UIEdgeInsetsMake(height, width, height, width)]; UIImage *imgProgress = [[UIImage imageNamed:@"progress_on.png"]resizableImageWithCapInsets:UIEdgeInsetsMake(height, width, height, width)]; [progressView setProgressImage:imgProgress]; [progressView setTrackImage:imgTrack]; [popBgView addSubview:progressView]; [progressView release];
- 进度条 UIProgressView 设置背景色及高度
- 进度条 UIProgressView 设置背景色及高度
- MFC对话框设置背景色及透明度
- android背景色及字体色设置
- MFC对话框设置背景色及透明度
- MFC对话框设置背景色及透明度
- MFC对话框设置背景色及透明度
- Eclipse设置护眼背景色及字体
- 进度条前景色和背景色改变
- 设置标题栏背景色,背景色是自定义背景色
- 设置背景色
- 设置对话框背景色
- 设置状态栏背景色
- OPENGL 设置背景色
- 设置Eclipse背景色
- notepad++设置背景色
- SecureCRT设置背景色
- 设置对话框背景色
- What is MariaDB Galera Cluster?
- 从行,列均为递增的二维数组中查找给定元素
- 啥 5个命令
- Linux下软件安装方法总结
- 学习Berkeley DB- 入门
- 进度条 UIProgressView 设置背景色及高度
- Linux信号(signal) 机制分析
- C/C++中如何让一个类不被继承
- 一起学习iOS开发专用词汇,每天记3个,助你变大牛(0917)
- [技术分享--RMS篇] 迁移 AD RMS SQL 数据库
- 递归算法
- HDU 2795 Billboard (线段树单点更新)
- LibJingle for Ubuntu 编译
- 安卓学习--------jsoup简单使用