Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在NSAttributedString通过 正确显示 时遇到问题UILabel,导致文本底部被剪裁。在一个版本中,我将UILabel的背景颜色的框架设为红色,看起来这是文本绘制方式的问题,而不是框架的问题。
NSAttributedString
UILabel
在带有红色背景的标签中,顶部填充看起来比底部填充大。当你增加标签框时会发生什么?