• 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: SOLVED: NSAttributedString: how to add an underline (dotted line) between tab stops?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: SOLVED: NSAttributedString: how to add an underline (dotted line) between tab stops?


  • Subject: Re: SOLVED: NSAttributedString: how to add an underline (dotted line) between tab stops?
  • From: Alex Zavatone <email@hidden>
  • Date: Wed, 17 Feb 2016 13:59:09 -0500

David, I put together some helper classes for building NSAttributed strings in specific formats on iOS.

One of the things it handles properly is superscripting.  The options for superscripting are to scale the superscripted text and shift above the baseline based on a percentage of the original font's size or to move it a fixed amount.

If you or anyone else would like, I'd be happy to share.

Email me offline if you'd like me to send.

Cheers,
Alex Zavatone

On Feb 17, 2016, at 9:37 AM, David Hoerl wrote:

>
>>> Is there a mechanism to do this? Even a gray solid underline that visually aligns the items works too (background image?)
>>>
>>
>>
>> Serach the documentation for NSUnderlinePatternDot
>>
>> —Graham
>
> Thanks,
>
> What I had wanted was to place the underline style in the white space between two items that are tab separated.
>
> I did find this past weekend that simply applying the style to the tab character (the style you mention) resulted in the effect I was hoping for. In hindsight I guess it seems quite rational now.
>
> Note that patterns also require the specification of a line style (single, double, etc) - so you must or them together.
> _______________________________________________
>
> 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


_______________________________________________

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


References: 
 >NSAttributedString: how to add an underline (dotted line) between tab stops? (From: David Hoerl <email@hidden>)
 >Re: NSAttributedString: how to add an underline (dotted line) between tab stops? (From: Graham Cox <email@hidden>)
 >SOLVED: NSAttributedString: how to add an underline (dotted line) between tab stops? (From: David Hoerl <email@hidden>)

  • Prev by Date: SOLVED: NSAttributedString: how to add an underline (dotted line) between tab stops?
  • Next by Date: Breakpoints: Swift Error
  • Previous by thread: SOLVED: NSAttributedString: how to add an underline (dotted line) between tab stops?
  • Next by thread: UITableView -reloadData woes
  • Index(es):
    • Date
    • Thread