我已经将它们正确地添加到我的plist中,并创建了一个Custom UIFont类,在其中我用该Aller字体覆盖了系统字体。对于相同的代码和相同的过程,如果我集成Lato字体,它可以很好地工作。问题仅在于Aller字体。
il passed to [UILabel setFont:] and [UILabel defaultFont] is also nil. Don't know what to do, so leaving font as (null) 0.000000
2014-12-18 15:33:50.715 2497:72343] Unable to load string table file: CFBundle 0x7fcfcae121a0 </Users/arun/Library/Developer/CoreSimulator/Devices/8A7E96AE-E960-4DAF-BD6F-79E533711C63/data/Containers/Bundle/Application/50D90A3E-10C5-4E02-A0D3-A1AAA86508D8.app> (executable, loaded) / Main: The operation couldn’t be completed. (Cocoa error 3840.)
2014-12-18 15:33:50.735 [2497:72343] nil passed to [UIButton setFont:] and [UIButtonLabel defaultFont] is also nil. Don't know what to do, so leaving font as (null) 0.000000
2014-12-18 15:33:50.737 [2497:72343] nil passed to [UIButton setFont:] and [UIButtonLabel defaultFont] is also nil. Don't know what to do, so leaving font as (null) 0.000000
2014-12-18 15:33:50.737[2497:72343] nil passed to [UILabel setFont:] and [UILabel defaultFont] is also nil. Don't know what to do, so leaving font as (null) 0.000000
2014-12-18 15:33:50.742[2497:72343] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** setObjectForKey: object cannot be nil (key: NSParagraphStyle)'
这真是一个令人不安的情况。即使我已经花了很多时间来研究解决方案。最后终于找到了一种特别针对Aller之类的字体,您可以尝试一下。它对我有所帮助。尝试通过在“字体簿”中打开字体文件并使用其中显示的字体名称来检查字体的正确名称。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句