rztime
rztime
> 你好,我看了你的示例代码,里面有把html转变成NSAttributedString的方法 > > NSAttributedString *attributeString = [NSAttributedString htmlString:html]; > ...... > cell.textLabel.attributedText = attributeString; > > 但是,如果html里面有图片,比如 > > > > 要如何给这个图片添加点击事件呢? 要实现点击事件,用UITextView 1. `self.textView2.rzDidTapTextView = ^BOOL(id _Nullable tapObj)...
你这个使用场景是什么样的?能贴部分主要代码么?
不好意思哈,没有建交流群~~~
刚刚建了一个QQ群:580839749
看看图片的src能不能用浏览器打开,内外网都试一下
暂时没有其他方法。 如果是用fontWithName,也就是你自己提供的三方字体库,那你可以多加几种字体(常规,粗体,斜体,粗斜体),对应不同字体粗细的需求用不同的字体库
手机端暂时没有
你可以使用swift写好你需要的代码,最后按需在oc里调用
cd 到 Example文件夹下,pod install
使用textView.helper.insert(text:nil, image: image, asset: asset)