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.
我已经有一个字体对象,我想为其添加underlined属性而无需指定字体名称。
underlined
我需要考虑使用UIFont, 或CTFont
UIFont
CTFont
没有对下划线的内置支持,因为这不是字体的一部分。是分开画的。有关实现详细信息,请参阅此 SO 线程:
UILabel 中的文本下划线