rztime / rzcolorful Goto Github PK
View Code? Open in Web Editor NEWNSAttributedString富文本的方法集合,以及简单优雅的使用其多种属性
License: MIT License
NSAttributedString富文本的方法集合,以及简单优雅的使用其多种属性
License: MIT License
你好,我看了你的示例代码,里面有把html转变成NSAttributedString的方法
NSAttributedString *attributeString = [NSAttributedString htmlString:html];
......
cell.textLabel.attributedText = attributeString;
但是,如果html里面有图片,比如
要如何给这个图片添加点击事件呢?
奔溃信息:
Terminating app due to uncaught exception 'NSRangeException', reason: 'NSMutableRLEArray objectAtIndex:effectiveRange:: Out of bounds'
[cell.textLabel rz_colorfulConfer:^(RZColorfulConferrer * _Nonnull confer) {
confer.appendImageByUrl(@"http://pic28.photophoto.cn/20130830/0005018667531249_b.jpg").bounds(CGRectMake(0, 0, 200, 0)).paragraphStyle.alignment(NSTextAlignmentLeft); // 宽或高为0时,即自动宽/高按照图片比例来
}];
当我保存成html后,上传到服务器. 然后我进行编辑的时候,我用html to objectC/ 这时候,我如何获取url:http://pic28.photophoto.cn/20130830/0005018667531249_b.jpg ?
有方法能去掉label的上下边距么
可以设置html中图片的平铺方式吗?
大侠,你更新后没推到cocoapods吧 都search不到 更新不到你1.4.0啊
这个RZFoldLabelFoldTypeNextRow没找到在哪里设置啊, 这个收起怎么放到最右边去,而不是放在文字后面
比如HTML文本如下:
@"哦吧你不会比谁都不休的白色修身
才能完呢冲破恩微博撇那狗骗你我饿够了呢比你耳边n伪军抹去你问邪恶
<img src="http://yk3.gokuai.com/index/thumb?mount_id=1255485&type=jpeg&hash=c36c982f5d047666d7173c3625550152a2d403e6&filehash=ca9ab472b4914bc0b3e7eefc9fa0fa66d75091bf&big=1\" alt="Gravatar" style="max-width:100%;display: block; position: relative; margin: auto;">
热敷已成为8哦鳄鱼从背后有我饿
<img src="http://yk3.gokuai.com/index/thumb?mount_id=1255485&type=jpeg&hash=565b67349cf2f08d4c373b350355adae46d7199c&filehash=169585a54ecc8311159717a1f8334ba0045a7532&big=1\" alt="Gravatar" style="max-width:100%;display: block; position: relative; margin: auto;"><a href="http://yk3.gokuai.com/file/hb14k046sx0l6gn2h471nkxm8i9zcau1#\" target="_blank"><img src="http://dn-preview.gokuai.com/23/237b4494a9cc56b3c29dc1d34be8340774cf9ce6_1280.jpg\" alt="File" style="max-width:100%;">去年细纹卡马乔全部下次去把握和刺猬比欧巴
"不知道有没有交流群,我有啥不会用的可以在群里请教一下大家。
git://cocoapodscn.com/Specs.git 这个repo是否也有更新?
另外RZTextView有个小问题,就是复制粘贴后自动滚到顶部去,能否解决?
因为我设置font属性的时候用了fontWithName,所以不能用boldSystemFontOfSize来加粗了,还有别的方法可以加粗吗?不用描边方法来加粗。是加文字的粗细,不是描边的粗细
库很好用, 希望持续维护更新.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.