Break nsstring into array


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



Copy this code and paste it in your HTML
  1. Found this at http://borkware.com/quickies/one?topic=NSString (useful link):
  2.  
  3. NSString *string = @"oop:ack:bork:greeble:ponies";
  4. NSArray *chunks = [string componentsSeparatedByString: @":"];
  5.  
  6. Hope this helps!
  7.  
  8. Adam

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.