【发布时间】:2012-10-30 00:22:56
【问题描述】:
“Andalus”自定义字体在UITableViewCell 中不起作用。后续步骤:
将字体文件名“Andalus.ttf”添加到app-info.plist中的“应用程序提供的字体”键
使用
NSLog(@"%@", [UIFont familyNames]);获取字体名称 // 它返回“Andalus”-
设置字体名称使用:
cell.textLabel.font = [UIFont fontWithName:@"Andalus" size:10];cell.detailTextLabel.font = [UIFont fontWithName:@"Andalus" size:10];
在
- (void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath
和
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
但是像 'حمل' 这样的词在 textedit 中不会以相同的字体出现
我使用UTF8 从sqlite 获取数据
谢谢你的提前
【问题讨论】: