UIlabel添加背景图片
来源:互联网 发布:cf帐号登录数据异常 编辑:程序博客网 时间:2024/05/16 08:19
做UI的时候我们可能想给某个Label添加一个背景图片,但查看的时候会发现好像只有设置背景颜色的方法,不过我们也可以通过这种方式来解决:
UIColor *color = [UIColor colorWithPatternImage:[UIImage imageNamed:@"itemkaung2.png"]];
[myLabel setBackgroundColor:color];
转自:http://blog.sina.com.cn/s/blog_71ad028b0100ydun.html,感谢作者
0 0
- UIlabel添加背景图片
- UIlabel添加背景图片
- UIlabel添加背景图片
- UIlabel添加背景图片
- UILabel添加背景图片
- UIlabel添加背景图片
- iPhone 设置UILabel 背景图片
- UILabel 设置背景图片
- 添加背景图片
- iOS 设置UILabel的背景图片
- UILabel添加发光效果
- UILabel添加下划线
- UILabel添加selector方法
- NGUI动态添加UILabel
- UILabel添加点击事件
- iOS UILabel添加背景图
- UILabel添加点击事件
- UILabel 文案添加下划线
- 加密解密 签名验签学习笔记
- Description Resource Path Location Type Java compiler level does not match the version of the insta
- hdu 2108 判断凹凸
- 非常缓慢相
- VIM 函数高亮
- UIlabel添加背景图片
- 解决:Error: Unable to access jarfile ..\lib\proguard.jar
- 迷宫 java实验
- 灰度共生矩阵
- android根据字体大小设置控件高度
- android 报表相关!
- 内联函数 inline
- 将进酒
- Android数据的存储方式 SQLite