sdisyw
Last Updated: February 25, 2016
·
1.568K
· novalagung
16162fed91387cc1cec055412db0022d

iOS - UITextField's text background color

NSMutableAttributedString *attributedString = [[NSMutableAttributedString alloc] initWithString:textField.text];
[attributedString addAttribute:NSBackgroundColorAttributeName value:[UIColor clearColor] range:NSMakeRange(0, textField.text.length)];
textField.attributedText = attributedString;
Say Thanks
Respond