nsattributedstring - How to apply color for underline style in NSAttrbutedString (ios)? -


Assume that I'm adding the style that is outlined in NSAttributedString:

  [attrStr addAttribute: NSUnderlineStyleAttributeName Value: @ (NSUnderlineStyleSingle) Category: Category];  

Is it possible to apply color (not just the highlighted style) to underline the text color without changing it?

Yes. Use NSUnderlineColorAttributeName to set the underline color.


Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

asp.net mvc - How to attach sql database to a javascript graph -

c# - How to know the number of Threads created and limit the Tasks accordingly -