Created
July 20, 2014 12:30
-
-
Save ajonnet/9c43b7253123239667b1 to your computer and use it in GitHub Desktop.
Trim WhiteSpaces from ends of String
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
//Trimming WhiteSpaces from String | |
NSString *str = @" String with whitespaces "; | |
str = [str stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment