Posted By

jonathanbp on 06/19/08


Tagged

trim strings


Versions (?)

Who likes this?

6 people have marked this snippet as a favorite

windmarble
artificialkid
zadkiel
saturngod
cnathan
Tintenklecks


trim whitespace


 / Published in: Objective C
 

  1. str = [str stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceCharacterSet]]; // trim

Report this snippet  

You need to login to post a comment.