开发者

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

开发者 https://www.devze.com 2023-03-04 18:18 出处:网络
is it possible to set adistance 开发者_Python百科between the Letters like a b cYes, you could do by using the StringWithFormat or initWithFormatfunction of NSString.

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

精彩评论

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