Character Replace In String


/ Published in: Objective C
Save to your folder(s)

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


Copy this code and paste it in your HTML
  1. street = [street stringByTrimmingCharactersInSet:[NSCharacterSet newlineCharacterSet]];
  2. street = [street stringByReplacingOccurrencesOfString:@" " withString:@"+"];

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.