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

mysql - How to enter php data into a html multiple select box -

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

c++ - Cassandra datastax cpp driver - avoiding unnecessary copies -