iOS 6 で文字間隔を設定する方法を教えてください。以下のコードを使用して iOS 7 で正常に動作していますが、iOS 6 で行う必要があります。
NSMutableAttributedString *attributedString = [[NSMutableAttributedString alloc] initWithString:[arraySettings objectAtIndex:indexPath.row]];
float spacing = 0.2f;
[attributedString addAttribute:NSKernAttributeName
value:@(spacing)
range:NSMakeRange(0, [[arraySettings objectAtIndex:indexPath.row] length])];
cell.textLabel.attributedText = attributedString;
iOS 6 で上記のコードがクラッシュした後のエラー画像:
ありがとう。