Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I clear the contents of an NSMutableAttributedString?

I have an ivar which is alloc-inited in the init of an object:

attString = [[NSMutableAttributedString alloc] init];

On a loop, I want to clear the contents of attString and re-use it. How do I do this?

Thanks!

like image 372
jowie Avatar asked Sep 23 '10 13:09

jowie


1 Answers

[[attString mutableString] setString:@""];
like image 187
kennytm Avatar answered Nov 08 '22 18:11

kennytm