Posted By

BenClayton on 03/29/11


Tagged


Versions (?)

iOS / iPhone: Trim whitespace from string


 / Published in: Objective C
 

  1. NSString *theStringTrimmed = [theString stringByTrimmingCharactersInSet: [NSCharacterSet whitespaceAndNewlineCharacterSet]];

Report this snippet  

You need to login to post a comment.