Re: Non-breaking hyphen in UILabel?
Re: Non-breaking hyphen in UILabel?
- Subject: Re: Non-breaking hyphen in UILabel?
- From: Jens Alfke <email@hidden>
- Date: Fri, 24 Jan 2014 08:56:07 -0800
On Jan 23, 2014, at 11:59 PM, Rick Mann <email@hidden> wrote:
> I have a UILabel that breaks lines if the text gets too long. Traditionally, on the Mac, you could type an option-hyphen to get a non-breaking hyphen, but this still breaks (when I type option-hyphen in my source code file in Xcode).
Option-hyphen isn't non-breaking; it's an en-dash*, which is generally used in ranges of numbers, like "20–30". Apple's layout code will break at en-dashes (though I'm not sure whether or not that's typographically correct.)
You're probably thinking of option-space, which is a nonbreaking space. AFAIK there's no equivalent character for hyphens.
—Jens
* http://en.wikipedia.org/wiki/Dash#En_dash
_______________________________________________
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