UILabel属性集合
2016-02-25 11:33
423 查看
1、设置圆角
<span style="font-size:18px;"> UILabel *_cutoffMsg = [[UILabel alloc] initWithFrame:CGRectMake(10, 60, self.bounds.size.width, 50)]; _cutoffMsg.backgroundColor = [UIColor redColor]; <strong><span style="color:#3366ff;">_cutoffMsg.layer.masksToBounds = YES; _cutoffMsg.layer.cornerRadius = 10;</span></strong> _cutoffMsg.text = @"优惠活动"; _cutoffMsg.font = [UIFont systemFontOfSize:10]; [self addSubview:_cutoffMsg];</span>
相关文章推荐
- 步步为营VS 2008 + .NET 3.5(3) - C# 3.0新特性之Automatic Properties(自动属性)、Object Initializers(对象初始化器)、Collection Initializers(集合初始化器)和Ext
- Spring中使用Map、Set、List、数组、属性集合的注入方法配置文件
- Struts2:类型转换之批量封装Set集合类型的属性(一)
- Hibernate对集合属性的操作之Set集合篇 6
- List集合中的对象根据属性排序
- Android -------GridView属性集合
- Android GridView的属性集合
- 在唯一密钥属性“value”设置为“login.aspx”时,无法添加类型为“add”的重复集合项
- 能够读写属性文件的集合类-Properties
- List去重:根据集合中对象特定属性去重(2)
- mono touch 中UITextField和UILabel的一些你必须要知道的属性设置
- UIlabel代码实例化 和属性
- UILabel的各种属性与方法的使用
- UILabel的常见属性
- [.NET 3.x新特性一]自动属性,对象初始化及集合初始化
- 根据集合中对象属性值大小进行排序
- UIView UILabel UITextField UIButton UIImageView 常用属性
- UILabel的相关属性设置
- Js原生元素选择器 _$获取id class attr 属性集合
- Java:集合,对列表(List)中的自定义对象按属性(字段)排序(正序、倒序)的方法