I\'ve been trying to get rid of the white spaces in an NSString, but none of the methods I\'ve tried worked.
NSString
I have \"this is a test\" and
\"this is a test\"
Easy task using stringByReplacingOccurrencesOfString
stringByReplacingOccurrencesOfString
NSString *search = [searchbar.text stringByReplacingOccurrencesOfString:@" " withString:@""];