文章分类 -  ios之UILabel

摘要:from https://blog.csdn.net/gloryFlow/article/details/54311751 IOS BUG记录 boundingRectWithSize计算内容宽度高度的问题 在IOS6和IOS7不同的系统出现的计算文本高度的方法不一样 IOS6中我们使用以下两个方法 阅读全文
posted @ 2021-09-03 14:54 sundaysios 阅读(583) 评论(0) 推荐(0) 编辑
摘要:https://www.jianshu.com/p/824e720c63f2 富文本丰富了UITextView和和UILabel的展示文本的形式设置下划线可以使用富文本进行设置,行了,闲话少说,直接上需求和样式吧。需求就是:调整下下划线与文字之间的距离,因为使用富文本本身设置的下划线几乎是贴着文字展 阅读全文
posted @ 2019-11-14 20:15 sundaysios 阅读(1668) 评论(0) 推荐(0) 编辑
摘要:UILabel *pLabel = [[UILabel alloc] initWithFrame:CGRectMake(0,100,200,100)]; pLabel.text = @"测试到吗"; NSInteger leght = [pLabel.text length];NSMutableAt 阅读全文
posted @ 2019-11-14 10:50 sundaysios 阅读(1109) 评论(0) 推荐(0) 编辑
摘要:https://www.jianshu.com/p/7472fbf42e3d 2017.12.07 17:19* 字数 390 阅读 2454评论 12喜欢 14 前言 UIScrollView有contentInset这个属性,但是UILabel没有;Android有,iOS没有。 最近需要用到带 阅读全文
posted @ 2019-03-26 10:07 sundaysios 阅读(263) 评论(0) 推荐(0) 编辑
摘要:iOS 文字样式处理总结(字体、前背景色、斜体、加粗、对齐、行间距、段间距、动态获取字符串label宽高等) 在iOS开发中,常常会有一段文字显示不同的颜色和字体,或者给某几个文字加删除线或下划线的需求。NSMuttableAttstring(带属性的字符串),可以灵活实现以上功能。 NSMutab 阅读全文
posted @ 2018-09-29 09:24 sundaysios 阅读(870) 评论(0) 推荐(0) 编辑
摘要:https://www.jianshu.com/p/d8d29e30d2d4 2016.07.01 17:25* 字数 211 阅读 24373评论 18喜欢 32赞赏 1 https://www.jianshu.com/p/d8d29e30d2d4 2016.07.01 17:25* 字数 211 阅读全文
posted @ 2018-09-29 09:05 sundaysios 阅读(3133) 评论(0) 推荐(0) 编辑
摘要:https://blog.csdn.net/smilebigdear/article/details/70054561 转: http://www.jianshu.com/p/c2b8a7940d4d 在使用boundingRectWithSize: 计算 UILabel 高度,显示出来后 Labe 阅读全文
posted @ 2018-07-22 19:46 sundaysios 阅读(958) 评论(0) 推荐(0) 编辑
摘要:https://www.jianshu.com/p/e0340f65b0fb 2017.04.27 14:55* 字数 259 阅读 404评论 0喜欢 0 UILabel 字体间距和行间距,计算高度,首行缩进, 多个UILabel显示文字对齐 已封装好方法 可以加入到自己的Category 1、U 阅读全文
posted @ 2018-07-22 12:13 sundaysios 阅读(1583) 评论(0) 推荐(0) 编辑
摘要:2016.03.02 10:56* 最后编辑于 2017.12.03 02:46 字数 2483 阅读 3896评论 0喜欢 7 2016.03.02 10:56* 最后编辑于 2017.12.03 02:46 字数 2483 阅读 3896评论 0喜欢 7 2016.03.02 10:56* 最后 阅读全文
posted @ 2018-06-21 20:14 sundaysios 阅读(1077) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示