开发者

is it possible to set the UILabel distance between the Letters?

is it possible to set a distance 开发者_Python百科between the Letters like a b c


Yes, you could do by using the StringWithFormat or initWithFormat function of NSString.

Do something like below ..

NSString* myString = [[NSString alloc] initWithFormat:@"%@ %@ %@",@"a",@"b",@"c"];

Assign myString to your label.


Neither UILabel nor the UIFont you set it to have character spacing options. There's likely a way to do with with Core Text, but a quick look through the framework documentation didn't reveal it.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜