derailed / motion-awesome

As if more awesomeness was needed
41 stars 14 forks source link

Crashes when adding label to view #8

Closed mgartner closed 10 years ago

mgartner commented 10 years ago

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.

mgartner commented 10 years ago

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.