i have a string like this : NSString *str =@"text |0|1|5|this is an other text";
i would like to have watch component in separate string, example :
NSString *str1 =@"text";
NSString *str2 =@"0";
...
How i can do this with the complete NSString (str). thanks for your answer
You can split this data out based on the pipe delimeter. Your result will be returned, seperated, in an
NSArray. You can then access the elements by index.e.g.