Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- NSString *str = @"mario's test";
- NSString *stringWithoutSpaces = [str stringByReplacingOccurrencesOfString:@" " withString:@""];
- stringWithoutSpaces = "mariostest"
- *stringWithoutSpaces = [[str stringByReplacingOccurrencesOfString:@" " withString:@""]
- stringByReplacingOccurrencesOfString:@"'" withString:@""];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement