Created
June 15, 2012 08:57
-
-
Save WJachowicz/2935503 to your computer and use it in GitHub Desktop.
Trim whitespaces from NSString
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NSString * text = @" some text "; | |
text = [text stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment