Adding a Dotted red line under characters in a UITextView
I think you are going to have to find an approach other than NSAttributedString.
As far as I can tell, your only value choices in iOS for NSUnderlineStyleAttributeName are NSUnderlineStyleNone or NSUnderlineStyleSingle, which represent numbers.
NSUnderlineColorAttributeName support iOS 7.0+.