So I am trying to use this font http://fortawesome.github.com/Font-Awesome/. I\'ve added the font as a resource and put it in the plist file. Here\'s how I am using it:
It is because your +[NSString stringWithFormat:]
method contains the literal for a unichar, not an NSString, which is an object that uses %@, which is beside the point because literal'ing a literal is redundant.
In case anyone is wondering, import the following in the .m file.
import "NSString+FontAwesome.h"
Here is an example for a cell's label text:
cell.textLabel.font = [UIFont fontWithName:@"FontAwesome" size:12];
cell.textLabel.text = @"\uf000";
Make sure you get the font name correct as suggested above.
For using custom fonts make sure that the name of font which you have given in your plist and here,have the same real name.I mean the name of the font should be the same which in generally it have.Dont try to modify for the name.Check if the name of the font you are using is really the name of this font.
Thanks Sanjay
FontAwesome font name comes in like so: FontAwesome
Try [UIFont fontWithName:@"FontAwesome" size:8]]
.
Watching this video tutorial might help: http://youtu.be/J1EHAS0icv0.