Monday, May 14, 2012

iOS NSMutableString split like java's String method split()

I hava a NSString which uses $ as delimiters, e.g.



    NSMutableString *str = @"AA$BB$CC";


So, my questio is: is there a method to split that NSMutableString by delimiters '$' and store into an array,
just like in java:



    String[] list = str.split()


thanks advancde.





No comments:

Post a Comment