Мой код выглядит следующим образом:
NSArray *modifyVersionOnDevice [FileHandler parseFile:devicepath];
NSString *param = [modifyVersionOnDevice objectAtIndex:1];
//param at this point is one element with string of "#MAJREV: 3"
//As soon as I run the next line, I get an error Unrecognized selector sent
to instance.
NSArray *d =[param componentsSeparatedByString:@":"];
Если у меня жесткий код
NSString *param =@"#MAJREV: 3"; it works