YYKit
YYKit copied to clipboard
YYTextView placeholder不显示
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值不对,系统默认字体正常。 看有没有解决方案
你解决了吗?