![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
label
koocui
有种淡淡的忧伤
展开
-
计算字符串的多少来计算label大小
这个方法是计算label的大小 进一步返回cell的高度的方法!!!原创 2015-12-08 16:21:23 · 475 阅读 · 1 评论 -
Label 行间距--swift版
let nameString = "罚款乐山大佛\n"+"房价都看楼房:\n"+"附件卡死到:\n"+"房间看电视:\n"+"就发送到块:" let nameStr:NSMutableAttributedString = NSMutableAttributedString(string: nameString) let paragr原创 2016-08-03 10:03:17 · 2570 阅读 · 0 评论 -
NSAttributedString
func setTextColorWhihString(one:String,two:String,font:CGFloat) -> NSMutableAttributedString { let text = NSMutableAttributedString(string: "\(one)", attributes: [原创 2017-06-05 14:06:48 · 184 阅读 · 0 评论 -
iOS 使用UILabel展示H5文本信息
self.contentStr = “h5文本” let data = self.contentStr.dataUsingEncoding(NSUnicodeStringEncoding) do { let attrStr = try NSAttributedString(data: data!, options:原创 2018-01-13 15:14:17 · 1571 阅读 · 0 评论