Re: NSAttributedString: how to add an underline (dotted line) between tab stops?
Re: NSAttributedString: how to add an underline (dotted line) between tab stops?
- Subject: Re: NSAttributedString: how to add an underline (dotted line) between tab stops?
- From: David Delmonte <email@hidden>
- Date: Fri, 12 Feb 2016 09:54:30 -0500
I did something similar recently with strikethrough:
NSAttributedString *string1 = [[NSAttributedString alloc] initWithString:@"TRAIN - " attributes:nil];
NSAttributedString *string2 = [[NSAttributedString alloc] initWithString:@"INTERACTIVE" attributes:@{NSStrikethroughStyleAttributeName:@(NSUnderlineStyleSingle)}];
NSAttributedString *string3 = [[NSAttributedString alloc] initWithString:@" MAP" attributes:nil];
NSMutableAttributedString* titleString = [string1 mutableCopy];
[titleString appendAttributedString:string2];
[titleString appendAttributedString:string3];
[titleLabel setAttributedText: titleString];
want The equivalent for underscore is: NSUnderlineStyleAttributeName
On Feb 12, 2016, at 9:39 AM, David Hoerl <email@hidden> wrote:
I want to build a table with a left identifier, then a tab stop (well actually a few), each having some text in it.
What I'd dearly love to do is add a dotted line style underline that goes from the right position of the left most text then butts up to the tab stop to its right, up to the left begin of text: for instance:
SomeIdentifier.................FirstTabValue.......
Is there a mechanism to do this? Even a gray solid underline that visually aligns the items works too (background image?)
Thanks for any pointers.
_______________________________________________
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