let systemFont = UIFont.systemFontOfSize(14)let otherFont = UIFont(descriptor: systemFont.fontDescriptor(), size: 16)以下是錯誤形式:let systemFont = UIFont.s... ...
let systemFont = UIFont.systemFontOfSize(14)
let otherFont = UIFont(descriptor: systemFont.fontDescriptor(), size: 16)
以下是錯誤形式:
let systemFont = UIFont.systemFontOfSize(14)
let otherFont = UIFont(name: systemFont.familyName, size: 16)
儘量不要調用familyName來創建系統文字,否則會導致系統字體的自動調整功能失效。