alexdrone / ios-fontawesome

NSString+FontAwesome
1.74k stars 254 forks source link

Icon not showing and app crash on second access #63

Open mhermosi opened 8 years ago

mhermosi commented 8 years ago

Hi,

I have just included the NSString+FontAwesome.h and .m on my project along with FontAwesome.ttf. I made the changes on info.plist and also verified that Build Phase is correct copying the resources. I also checked the output folder and expected files are there.

So now the problem is the icon is not shown when I first access. just a box with an ? appear then when try to access a second time app chrash on the following method:

with error: EXC_BAD_ACCESS

Thanks in advance,

-Martin

mhermosi commented 8 years ago

finally I have used the UIImage+FontAwesome instead of NSString+FontAwesome to display the icon.

raykoon commented 8 years ago

Only need to add ARC Mode to solved this issue.