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.
精彩评论