Posted By

suibhne on 08/02/09


Tagged

String iphone


Versions (?)

Who likes this?

4 people have marked this snippet as a favorite

tbass134
umang_nine
avanadra
cnathan


Character Replace In String


 / Published in: Objective C
 

Just replace a character within a string (e.g. carriage returns).

  1. street = [street stringByTrimmingCharactersInSet:[NSCharacterSet newlineCharacterSet]];
  2. street = [street stringByReplacingOccurrencesOfString:@" " withString:@"+"];

Report this snippet  

You need to login to post a comment.