views:

202

answers:

1

For example, how would I set it to Tahoma?

+2  A: 
cell.textLabel.font = [UIFont fontWithName:@"ArialMT" size:144];

where cell is a UITableViewCell you would return in -tableView:cellForRowAtIndexPath:.

KennyTM
*** Assertion failure in -[UILabel setFont:], /SourceCache/UIKit/UIKit-963.10/UILabel.m:445
RAGOpoR
@RAGOpoR: Because Tahoma doesn't exist on the iPhoneOS.
KennyTM
how did i know which font are available for it?
RAGOpoR
@RAGOpoR: Check `[UIFont familyNames]`. The default ones can be found also in http://iphonedevwiki.net/index.php/UIFont.
KennyTM
Thanks for your advise KennyTM
RAGOpoR