Skip to content

Instantly share code, notes, and snippets.

@mwhuss
Created June 11, 2014 18:30
Show Gist options
  • Save mwhuss/384e020c1cecea286834 to your computer and use it in GitHub Desktop.
Save mwhuss/384e020c1cecea286834 to your computer and use it in GitHub Desktop.
// html is <p><a href='http://google.com'>Bacon</a></p>
Printing description of attrString:
Bacon{
NSColor = "UIDeviceRGBColorSpace 0.5 0 0.5 1";
NSFont = "<UICTFont: 0xc8bc190> font-family: \"GothamRounded-Medium\"; font-weight: normal; font-style: normal; font-size: 15.00pt";
NSKern = 0;
NSLink = "http://google.com/";
NSParagraphStyle = "Alignment 4, LineSpacing 10, ParagraphSpacing 0, ParagraphSpacingBefore 10, HeadIndent 0, TailIndent 0, FirstLineHeadIndent 0, LineHeight 0/0, LineHeightMultiple 0, LineBreakMode 0, Tabs (\n 10L\n), DefaultTabInterval 10, Blocks (null), Lists (null), BaseWritingDirection -1, HyphenationFactor 0, TighteningFactor 0, HeaderLevel 0";
NSStrokeColor = "UIDeviceRGBColorSpace 0.317647 0.568627 0.737255 1";
NSStrokeWidth = 0;
NSUnderline = 1;
}
{
NSColor = "UIDeviceRGBColorSpace 0.901961 0.901961 0.901961 1";
NSFont = "<UICTFont: 0xc8bc190> font-family: \"GothamRounded-Medium\"; font-weight: normal; font-style: normal; font-size: 15.00pt";
NSKern = 0;
NSParagraphStyle = "Alignment 4, LineSpacing 10, ParagraphSpacing 0, ParagraphSpacingBefore 10, HeadIndent 0, TailIndent 0, FirstLineHeadIndent 0, LineHeight 0/0, LineHeightMultiple 0, LineBreakMode 0, Tabs (\n 10L\n), DefaultTabInterval 10, Blocks (null), Lists (null), BaseWritingDirection -1, HyphenationFactor 0, TighteningFactor 0, HeaderLevel 0";
NSStrokeColor = "UIDeviceRGBColorSpace 0.901961 0.901961 0.901961 1";
NSStrokeWidth = 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment