
iOS UILabel
文章平均质量分 65
XLawsZero
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
iOS 在一个UILabel上显示不同颜色
self.addressLabel = [[UILabel alloc]initWithFrame:CGRectZero]; self.addressLabel.textColor = [UIColor blackColor]; self.addressLabel.font = [UIFont systemFontOfSize:15];原创 2016-08-29 14:56:46 · 2016 阅读 · 0 评论 -
iOS 在一个UILabel里面字体大小不一样
NSMutableAttributedString * noteStr = [[NSMutableAttributedString alloc]initWithString:[NSString stringWithFormat:@"¥%@",哈哈哈哈哈哈哈]]; NSRange redRangeTwo = NSMakeRange([[noteStr string]原创 2016-08-29 17:54:12 · 6087 阅读 · 0 评论 -
iOS 在UILabel上添加横线
NSString * oldPrice = [NSString stringWithFormat:@"¥%@",orderDetails.UnitPrice]; NSUInteger length = oldPrice.length; NSMutableAttributedString * attri = [[NSMutableAttributedString al原创 2016-11-03 15:24:53 · 2547 阅读 · 0 评论 -
iOS UILabel自适应宽度
UILabel * label = [[UILabel alloc]initWithFrame:CGRectMake(100, 100, 80, 20)]; label.backgroundColor = [UIColor whiteColor]; label.textColor = [UIColor blackColor]; label原创 2017-01-05 14:47:29 · 6577 阅读 · 0 评论 -
iOS 运用富文本在UILabel上显示图片
NSMutableAttributedString * attrubedStr = [[NSMutableAttributedString alloc]initWithString:[NSString stringWithFormat:@"哈哈哈哈"]]; NSTextAttachment * attach = [[NSTextAttachment alloc]原创 2017-06-30 15:18:26 · 2997 阅读 · 1 评论 -
iOS UILabel 只修改字符串中的数字的颜色
NSString * content = @"fgd87484fdjdhj322"; NSArray * number = @[@"0",@"1",@"2",@"3",@"4",@"5",@"6",@"7",@"8",@"9",@"."]; NSMutableAttributedString * attributeString = [[NSMutableAtt原创 2017-09-25 16:19:43 · 1726 阅读 · 0 评论