NSMutableAttributedString
来源:互联网 发布:智慧环保大数据平台 编辑:程序博客网 时间:2024/04/26 07:00
NSMutableAttributedString *attribute = [[NSMutableAttributedStringalloc] initWithString:@"12345"attributes:@{NSFontAttributeName:[UIFontsystemFontOfSize:30]}];
[attribute appendAttributedString:[[NSAttributedStringalloc] initWithString:@"abcdefg"attributes:@{NSFontAttributeName:[UIFontsystemFontOfSize:10]}]];
UILabel *lab = [[UILabelalloc] initWithFrame:CGRectMake(50,100, 200,50)];
[self.viewaddSubview:lab];
lab.attributedText = attribute;
UILabel *lab1 = [[UILabelalloc] initWithFrame:CGRectMake(50,200, 200,50)];
[self.viewaddSubview:lab1];
NSMutableAttributedString *atttt = [[NSMutableAttributedStringalloc] initWithString:@"zzzzzzzzz"];
[atttt addAttribute:NSFontAttributeNamevalue:[UIFontsystemFontOfSize:30]range:NSMakeRange(0,5)];
lab1.attributedText = atttt;
- NSMutableAttributedString
- NSMutableAttributedString
- NSMutableAttributedString
- NSMutableAttributedString
- NSMutableAttributedString
- NSMutableAttributedString
- NSMutableAttributedString
- NSMutableAttributedString
- NSMutableAttributedString
- NSMutableAttributedString
- NSMutableAttributedString
- NSMutableAttributedString
- NSMutableAttributedString 使用
- NSMutableAttributedString使用
- NSMutableAttributedString 文字处理 。。。
- NSMutableAttributedString使用
- NSMutableAttributedString初探
- NSMutableAttributedString mode
- 共享栈
- mongo性能测试demo 代码正确运行
- 安装windows10+Archlinux双系统
- POJ 3592 Instantaneous Transference 缩点 拓扑图DP
- Saving HDU
- NSMutableAttributedString
- POJ 2728 (最优比率生成树+二分或者迭代)
- Xcode 6.1 做ipa企业级分发(In-House模式)详细步骤
- auto和decltype
- IOS-获取设备和app基本信息
- C++基础::typeid、type_info
- 尾递归
- StartSSL免费SSL证书成功申请-HTTPS让访问网站更安全
- AlphaGo 开源项目研究(1)