Monday, 26 August 2013

Spliting a string with no inbetween elements

Spliting a string with no inbetween elements

I am trying to split a String into individual elements in an array.
The string is something like this:
NSString = "123456789"
And then I tried to use this to separate it:
NSArray *intString = [x componentsSeparatedByString: @""];
But it only seems to enter it into one element in the array, and I'm not
really sure how to go about it. Any help would be great.

No comments:

Post a Comment