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
2010-02-17 15:14:10
*** Assertion failure in -[UILabel setFont:], /SourceCache/UIKit/UIKit-963.10/UILabel.m:445
RAGOpoR
2010-02-17 15:50:49
@RAGOpoR: Because Tahoma doesn't exist on the iPhoneOS.
KennyTM
2010-02-17 15:58:48
how did i know which font are available for it?
RAGOpoR
2010-02-17 16:02:01
@RAGOpoR: Check `[UIFont familyNames]`. The default ones can be found also in http://iphonedevwiki.net/index.php/UIFont.
KennyTM
2010-02-17 16:05:40
Thanks for your advise KennyTM
RAGOpoR
2010-02-17 16:09:59