×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Objective-C
Posted by: Black Light
Added: Mar 3, 2013 12:21 PM
Views: 13
Tags: no tags
  1. - (NSString*) trimSpacesAndNewLinesFrom:(NSString*)testString
  2. {
  3.     NSString *trimmedString = [testString stringByTrimmingCharactersInSet:
  4.                            [NSCharacterSet whitespaceAndNewlineCharacterSet]];
  5.     return trimmedString;
  6. }