Which operation I should use to work with this string?
I have a string "1, 5, 10-14" How can I get this situation:
NSString MyString;
NSString value1, value2;
NSMutableArray value3;
MyString = "1, 5, 10-14";
//Some operations that I needed
value1 = "1";
value2 = "5";
value3[0] = "10";
value3[1] = "11";
value3[2] = "12";
value3[3] = "13";
value3[4] = "14";
Thanks!
No comments:
Post a Comment