Skip to content

Instantly share code, notes, and snippets.

@luxinyan
Last active August 29, 2015 14:04
Show Gist options
  • Save luxinyan/42a2933f19b821d69bd1 to your computer and use it in GitHub Desktop.
Save luxinyan/42a2933f19b821d69bd1 to your computer and use it in GitHub Desktop.
NSString *myString = @"1233 12313";
[myString stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment