UILabel with superscripts
UILabel with superscripts
- Subject: UILabel with superscripts
- From: Koen van der Drift <email@hidden>
- Date: Thu, 09 May 2013 08:04:40 -0400
Right now I am using an UILabel with unicode symbols to show strings with superscripts, something like this:
NSInteger base = 2;
myLabel.text = [NSString stringWithFormat: @"%d\u00B2 = %d", base, base*base];
But it kinda looks ugly in my opinion, the subscript is too low relative to the regular characters. Maybe it's the font I'm using, which is the standard system font. Are there alternatives? I read about using an UIWebView, but that seems a bit overkill for a simple string.
Thanks,
- Koen.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden