Hi,
I am trying to find a word inside a phrase (NSString).
For this I've exploded the components of the phrase into individual substrings and now I am trying to compare them to the word I am looking for, but it doesn't work.
What would be the correct approach for this and fix for the software below?
NSString *myString = @"Mi Programa es genial";
NSArray *explodedDescription = [myString componentsSeparatedByString:@" "];
if ([explodedDescription objectAtIndex:1] == @"Programa" ) {
NSLog(@"Found");
}