NSString *myText = @" hello foo ";
NSString *trimmedText = [myText stringByTrimmingCharactersInSet:
[NSCharacterSet whitespaceCharacterSet]];
NSLog(@"old = [%@], trimmed = [%@]", myText, trimmedText);
NSString *myText = @" hello foo ";
NSString *trimmedText = [myText stringByTrimmingCharactersInSet:
[NSCharacterSet whitespaceCharacterSet]];
NSLog(@"old = [%@], trimmed = [%@]", myText, trimmedText);
Comments
Post a Comment