Re: Non-breaking hyphen in UILabel?
Re: Non-breaking hyphen in UILabel?
- Subject: Re: Non-breaking hyphen in UILabel?
- From: Mike Abdullah <email@hidden>
- Date: Fri, 24 Jan 2014 17:23:39 +0000
On 24 Jan 2014, at 16:56, Jens Alfke <email@hidden> wrote:
>
> 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.
There is a non-breaking hyphen. Not sure what the unicode point is for it, but it’s there in the Special Characters palette if you search.
_______________________________________________
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