I have NSString @" (\n "Bi_ss" \n) "
I want to get String @"Bi_ss "
Any one has any idea about this ? Thank you
NSString *trimmedString = [string stringByTrimmingCharactersInSet:
[NSCharacterSet whitespaceAndNewlineCharacterSet]];
From Cocoanetics...
Take a look at the NSString
method stringByReplacingOccurrencesOfString:withString
for example, this should be able to perform the basic task you want it to do.
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