I have a little problem with NSRange, or maybe its just the wrong comman I use.
Here is what I want to do. I have a string like this :
NSString *mystring = @"/c1blue/c2green/c3yellow/"
As you can see there is always a command with a value and that seperated by "/". Now I want to write a mthod that gives me a specific value for a command, e.g. c2 which would be green.
First I would get the position of c2 :
int beginIndex = [mystring rangeOfString:@"c2"].location;
Now I need to find the position of the "/" with the offset of 'beginIndex'.
And thats where I do not know how.
Help is hihly appreciated. Thanks