标签: ios objective-c typography
他们如何做这个印刷文字。他们为每种风格创建UIView吗?
有人知道吗?
答案 0 :(得分:2)
尝试NSAttributedString。归因字符串允许您根据需要更改字符串每个部分的字体和外观。
NSAttributedString
文档:https://developer.apple.com/library/ios/documentation/Cocoa/Reference/Foundation/Classes/NSAttributedString_Class/index.html
https://developer.apple.com/library/ios/documentation/Cocoa/Reference/Foundation/Classes/NSAttributedString_Class/index.html