derailed/motion-awesome

Crashes when adding label to view

Closed this issue · 1 comments

When I add a MotionAwesome label to a view via addSubview the app crashes.

Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSNull ctFontRef]: unrecognized selector sent to instance 0x3f93068'

I'm trying to figure out what is causing it. Let me know if anyone has any ideas.

I figured out it was because my app wasn't loading in the font. All I had to do was add a line in the Rakefile to tell RM to load in the FontAwesome font file.