如何在 Objective-C 中扩大 UILabel 宽度(字母间距)?

How to enlarge UILabel width (letter spacing) in Objective-C?

这是我用于我的视图控制器的 UILabel 标题的代码:

UIFont *bebasFont = [UIFont fontWithName:@"Bebas" size:100]; RestaurantsTitle.font = bebasFont; RestaurantsTitle.text = @"RESTAURANTS";

我需要放大标题字母之间的space,但我不知道该怎么做。

为文本字段而不是框架设置宽度是否也可行?

I need to enlarge the space between the letters

使用 NSAttributedString 并增加字符串的字距。

https://developer.apple.com/library/ios/documentation/Cocoa/Reference/Foundation/Classes/NSAttributedString_Class/index.html

https://developer.apple.com/library/ios/documentation/UIKit/Reference/NSAttributedString_UIKit_Additions/index.html#//apple_ref/doc/c_ref/NSKernAttributeName