alexdrone / ios-fontawesome

NSString+FontAwesome
1.74k stars 254 forks source link

Seeing a mismatch. @"fa-github" gives me "fa-glass" #35

Open ikarandeep opened 10 years ago

ikarandeep commented 10 years ago

fontAwesomeIconStringForEnum:FAVolumeUp is giving me FAHeadphones...

Is there something wrong? I've had it working before. I just updated to the latest code, but I type one thing and I get another.

ikarandeep commented 10 years ago

nevermind. the issue is gone. thanks

SeanChense commented 10 years ago

I think the problem is still there :(

update: It's my fault.. sorry

rafiki270 commented 9 years ago

+1 ... there are no clear instructions how to use using pods. I had to add the font to the bundle as a resource to copy and mark it in the info.plist ... is there anything else that needs to be done?

horaceho commented 9 years ago

Use fontAwesomeIconStringForEnum instead of fontAwesomeIconStringForIconIdentifier for better error checking.

bfontana commented 9 years ago

According to NSDictionary in NSString+FontAwesome.m you should use icon-{name] instead of fa-{name]. At least it worked for me.

fa-glass is 0 at Unicode index so it seems when id you trying to use is not found it defaults to glass.

PabloLerma commented 9 years ago

We should close this issue :P