Removing all attributes

suggest change

Objective-C

NSMutableAttributedString *mutAttString = @"string goes here";
NSRange range = NSMakeRange(0, mutAttString.length);
[mutAttString setAttributes:@{} range:originalRange];

As per Apple Documentation we use, setAttributes and not addAttribute.

Swift

mutAttString.setAttributes([:], range: NSRange(0..<string.length))

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents