Hello I’m trying this tutorial.
This my piece of code
- (void)viewDidLoad
{
[super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.
UIFont *font = [UIFont fontWithName: @"Bangla MN" size: 12];
NSLog(@"%@",font);
[mTextField setFont: font];
[mTextField setFont:font];
}
It’s giving null in log.
Here is sample project that I’m developing
If you already included it into project and correctly added into .plist, then make sure, that you use correct font name. You have to know, that sometime font name is not equal to font’s filename
UPD:
Solution were found. You just forgot to include your font file in TestApp target membership. After including – everything works fine.