Posted By

njhamann on 07/29/09


Tagged

c iphone objective


Versions (?)

Who likes this?

5 people have marked this snippet as a favorite

hERB
DASKAjA
umang_nine
davelb20
cnathan


Break nsstring into array


 / Published in: Objective C
 

  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  

You need to login to post a comment.