NSMutableString *str = [[NSMutableString alloc] init];
Suppose str has right know a value "me".
And On click of a button I want that the value of str get reset. That is the string value become nil or empty.
now i am using this [myword stringWithString: @""];
but not working.
Use setString with "" as parameter.
[myWord setString:@""];
And if you want to make it nil, then release it and then set it to nil.
[myWord release]; myWord = nil;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With