lele8446 / cjlabel Goto Github PK
View Code? Open in Web Editor NEWA drop-in replacement for UILabel that supports NSAttributedString, rich text, display any view, links, select copy and more
License: MIT License
A drop-in replacement for UILabel that supports NSAttributedString, rich text, display any view, links, select copy and more
License: MIT License
其实就是键盘和UIMenuController的并存问题:
1.需要增加一个自定义的TextView,支持设置nextResponder
2.CJLabel需要增加一个长按的回调或者通知,让业务层去监听当前谁即将成为Responder, 业务层去设置TextView的nextResponder
3.自定义的TextView需要监听UIMenuController的生命周期,取消nextResponder
cell 有多个控件的话 frame masonry 都不好使
NSMutableParagraphStyle行间距设置,没有效果
代码如下
NSMutableParagraphStyle *paragraphStyleLineS = [[NSMutableParagraphStyle alloc] init];
paragraphStyleLineS.lineSpacing = 2.0; // 设置行间距
[attributes setValue:paragraphStyleLineS forKey:NSParagraphStyleAttributeName];
configure.attributes = attributes;
因为需要展示自己设计的系统表情类图片,需要将图片放在imageView上转换成Attachment展示
这个控件没办法添加中划线,有解决办法吗?
CJSelectTextRangeView应该不包括设置的textInsets区域
如题,控件是先初始化,之后再设置frame的。
每次给lable重新复制的时候显示不正确 或 闪退
如题,可以新增一个配置项来控制。
Hello,我这边出现,在iOS 9、10系统,emoji表情显示不会填充满Label,导致内容无法全部显示
多行时,内容会提前换行,每行,Label的宽度足以再放入一个emoji表情,但是却直接换行了,导致计算出来的高度,与实际展示需要的高度不一致,
一个CTLine里面,不同CTRun,它们的下划线没有处在同一水平线上,如何调整
你好: 我在文本后面用NSTextAttachment 添加了图片,想要获取图片点击事件 怎么处理 ? 谢谢
点击图片之后,闪一下图片就变不显示了,点按在图片位置会显示出来
CJLabelConfigure.h中 CTLineRef lastVisibleLine = CFArrayGetValueAtIndex(lines, lastVisibleLineIndex); 报错提示:Cannot initialize a variable of type 'CTLineRef' (aka 'const __CTLine *') with an rvalue of type 'const void *'
当 文本是中文英文,数字的时候字体大小不一样阿
@Jacquesless 看下你自定义view是否userInteractionEnabled=NO了,或者有其他忽略点击的设置
如题
不知道基于什么考虑,添加了这些代码
unichar spacingChar = 0xFFFC;
NSString *spacingCharString = [NSString stringWithCharacters:&spacingChar length:1];
//空白占位符
NSAttributedString *placeholderStr = [[NSAttributedString alloc]initWithString:spacingCharString];
[str appendAttributedString:placeholderStr];
现有bug: numberOfLines大于0且小于实际label.numberOfLines,同时verticalAlignment不等于CJContentVerticalAlignmentTop时,文本显示位置有偏差
您的这个三方库这个问题太致命了, 会导致布局紊乱. 我这边只需要您的库的选择复制功能.
pod下来后- (void)touchesCancelled:(nullable NSSet<UITouch *> *)touches withEvent:(nullable UIEvent *)event报错
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.