Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/iphone/37.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Iphone 如何制作;安达卢斯“;自定义字体在UITableViewCell中不起作用?_Iphone_Ipad - Fatal编程技术网

Iphone 如何制作;安达卢斯“;自定义字体在UITableViewCell中不起作用?

Iphone 如何制作;安达卢斯“;自定义字体在UITableViewCell中不起作用?,iphone,ipad,Iphone,Ipad,“Andalus”自定义字体在UITableViewCell中不起作用。以下步骤: 将字体文件名“Andalus.ttf”添加到app-info.plist中的“应用程序提供的字体”键中 使用NSLog(@“%@,[UIFont familyNames])获取字体名称//它返回“Andalus” 使用以下命令设置字体名称:cell.textlab.font=[UIFont fontWithName:@“Andalus”大小:10] cell.detailTextLabel.font = [UI

“Andalus”自定义字体在
UITableViewCell
中不起作用。以下步骤:

  • 将字体文件名“Andalus.ttf”添加到app-info.plist中的“应用程序提供的字体”键中

  • 使用NSLog(@“%@,[UIFont familyNames])获取字体名称//它返回“Andalus”

  • 使用以下命令设置字体名称:
    cell.textlab.font=[UIFont fontWithName:@“Andalus”大小:10]

    cell.detailTextLabel.font = [UIFont fontWithName:@"Andalus" size:10];
    

但是像“حمل”这样的词在文本编辑中不会以相同的字体出现

我使用
UTF8
sqlite


感谢您的帮助

安达鲁斯是否有多个变体,例如安达鲁斯Strong和安达鲁斯Sharp?如果是这种情况,您必须指定希望使用的变体的名称


检查由
[UIFont-fontNamesForFamilyName:@“Andalus”]

返回的数组。在这里,您可以找到可使用的字体的更新列表:

此外,还有一个应用程序,您可以查看字体的外观:


谢谢您的回复。但事实并非如此。和[UIFont fontNamesForFamilyName:@“Andalus”]返回Andalus这是我的问题,回答有误。每个人都能让答案更清晰,以及如何与ios应用程序集成。
- (void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath 
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath