Fah*_*kar 2 objective-c arabic uifont ios
我有一个iPhone应用程序,我使用自定义阿拉伯字体.
一切都在iOS 7中运行.
当我在iOS 6上运行应用程序时,文本显示为默认的iPhone字体.
什么出了什么问题?


如果你看到差异,英语工作正常.只有阿拉伯语的问题.
问题解决了...
UILabel *arTitle = [[UILabel alloc] initWithFrame:CGRectMake(0, 200, 300, 100)];
arTitle.backgroundColor = [UIColor clearColor];
arTitle.textColor = [UIColor blueColor];
arTitle.textAlignment = NSTextAlignmentCenter;
arTitle.font = [UIFont fontWithName:@"GEDinarOne-Medium" size:16.0];
arTitle.numberOfLines = 0;
arTitle.text = @"?????? ?? ???? ?? ?? ????";
// these two line made effect...
NSMutableAttributedString *attributedString = [[NSMutableAttributedString alloc] initWithString:arTitle.text attributes:@{ NSFontAttributeName : [UIFont fontWithName:@"GEDinarOne-Medium" size:16], NSLigatureAttributeName: @2}];
arTitle.attributedText = attributedString;
Run Code Online (Sandbox Code Playgroud)