This will remove all space from myString.
NSString *newString = [myString stringByReplacingOccurrencesOfString:@" " withString:@""];
This will remove all space from myString.
NSString *newString = [myString stringByReplacingOccurrencesOfString:@" " withString:@""];