YYKit icon indicating copy to clipboard operation
YYKit copied to clipboard

YYTextView placeholder不显示

Open Liuruyong opened this issue 6 years ago • 1 comments

YYTextView.placeholderFont 设置为PingFang字体,placeholder不显示。

debug后发现,在YYTextLayout.m 494行

ctSetter = CTFramesetterCreateWithAttributedString((CFTypeRef)text); if (!ctSetter) goto fail; ctFrame = CTFramesetterCreateFrame(ctSetter, YYCFRangeFromNSRange(range), cgPath, (CFTypeRef)frameAttrs);

计算平方字体会出错,ctFrame值不对,系统默认字体正常。 看有没有解决方案

Liuruyong avatar Mar 21 '18 07:03 Liuruyong

你解决了吗?

lilongcnc avatar Sep 17 '19 06:09 lilongcnc