CJLabel
CJLabel copied to clipboard
A drop-in replacement for UILabel that supports NSAttributedString, rich text, display any view, links, select copy and more
因为需要展示自己设计的系统表情类图片,需要将图片放在imageView上转换成Attachment展示
 
不知道基于什么考虑,添加了这些代码 unichar spacingChar = 0xFFFC; NSString *spacingCharString = [NSString stringWithCharacters:&spacingChar length:1]; //空白占位符 NSAttributedString *placeholderStr = [[NSAttributedString alloc]initWithString:spacingCharString]; [str appendAttributedString:placeholderStr];
其实就是键盘和UIMenuController的并存问题: 1.需要增加一个自定义的TextView,支持设置nextResponder 2.CJLabel需要增加一个长按的回调或者通知,让业务层去监听当前谁即将成为Responder, 业务层去设置TextView的nextResponder 3.自定义的TextView需要监听UIMenuController的生命周期,取消nextResponder
如果是fffffffffff这样的文本或者是office之类的就会显示.... 
一个CTLine里面,不同CTRun,它们的下划线没有处在同一水平线上,如何调整
现有bug: numberOfLines大于0且小于实际label.numberOfLines,同时verticalAlignment不等于CJContentVerticalAlignmentTop时,文本显示位置有偏差 您的这个三方库这个问题太致命了, 会导致布局紊乱. 我这边只需要您的库的选择复制功能.
点击图片之后,闪一下图片就变不显示了,点按在图片位置会显示出来