Hello,
I'm trying to get a value from a string that belongs to an enum typedef in Obj C but I don't seem capable of geting the value out of the NSString. I'me doing something like this:
typedef enum{
S,
M,
L
} Size;
-(void)function:(NSString *)var{
Size value=[var value];
swicth(value){
case S:...
case M:...
...
}
}
EDIT: The contents of the string would br something like @"S" @"M" @"L"
I don't see how can I accomplish this.