• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Non-breaking hyphen in UILabel?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Non-breaking hyphen in UILabel?
      • From: Mike Abdullah <email@hidden>
  • Prev by Date: Re: File association using file magic
  • Next by Date: Re: Non-breaking hyphen in UILabel?
  • Previous by thread: Re: Non-breaking hyphen in UILabel?
  • Next by thread: Re: Non-breaking hyphen in UILabel?
  • Index(es):
    • Date
    • Thread