leichunfeng / MVVMReactiveCocoa

GitBucket iOS App
https://itunes.apple.com/cn/app/id961330940?mt=8
MIT License
3.72k stars 789 forks source link

Font return nil make crash. #227

Open c-ly opened 6 years ago

c-ly commented 6 years ago

UIFont *font = [UIFont fontWithName:kOcticonsFamilyName size:(float)((int)fontSize)]; After execute this line of code, font still was nil. kOcticonsFamilyName = @"Octicons"; but the font file "octicons.ttf" belong assets.bundle, not in main bundle, so it can't add to copy bundle resources. I guess this is the problem, but how to fix it? Hope your reply! @leichunfeng

c-ly commented 6 years ago

image