I have implemented underline of mutableattributedtext, have set the range also correctly, but it still underlines more than the range specified and instead fills the text box it is contained in.
[attributedString addAttribute:NSUnderlineStyleAttributeName value:[NSNumber numberWithInteger:NSUnderlineStyleSingle] range:NSMakeRange(0,[attributedString length])];
But Instead I get this.