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.
在我的新应用程序中,我需要用户能够单击选择器,并选择他们的任何系统字体。这怎么可能?
+[UIFont familyNames]返回已安装字体名称的数组。
+[UIFont familyNames]
编辑:糟糕,我处于 iOS 模式。这是 Mac OS 版本:
[[NSFontManager sharedFontManager] availableFontFamilies]