YYText
YYText copied to clipboard
Powerful text framework for iOS to display and edit rich text.
正常: 消失: 我是用在cell里面,有时候点击cell跳转后,在返回 就没有了,  代码就是普通的添加附件,麻烦大神解答
如图,在debug下字符是可以显示下的但是莫名截断了
[messageAttribute yy_setTextHighlightRange:[msg rangeOfString:redMsg] color:[UIColor colorConvertFromString:@"#999999"] backgroundColor:[UIColor clearColor] tapAction:^(UIView * _Nonnull containerView, NSAttributedString * _Nonnull text, NSRange range, CGRect rect) { [weakSelf sendOrderGuide]; }]; UIAlertController *alert = [UIAlertController alertControllerWithTitle:@"" message:@"" preferredStyle:UIAlertControllerStyleAlert];...
-[YYTextLayout firstRectForRange:(YYTextRange *)] ``` NSUInteger startLineIndex = [self lineIndexForPosition:range.start]; NSUInteger endLineIndex = [self lineIndexForPosition:range.end]; /* ... 此处省略若干行代码 ... */ NSMutableArray *lines = [NSMutableArray new]; // 这里的 `for` 循环, `i
window.overrideUserInterfaceStyle = UIUserInterfaceStyleDark 强制暗黑模式动态颜色不起作用,这个要怎么解决?
1. Add SwiftPM support 2. Partially close #1004
因为size的width是需要和rect的x修正,导致算出的textlayout中的textboundingsize的宽度会过宽
1. Swift API issue On Swift side, the signature of `+[YYTextLayout layoutWithContainer:text:]` and `+[YYTextLayout layoutWithContainers:text:]` would both be `YYTextLayout.layout(with:text:)` automatically. We need some manually `NS_SWIFT_NAME` to fix it. Saying it,...
_UIGraphicsBeginImageContextWithOptions(CGSize, BOOL, CGFloat, BOOL)(), UIGraphics.m:410