my code
NSString * mistring = @"hello hello hello.";
NSRange detect; detect = [mistring rangeOfString: @"@hello"];
if (detect.location == NSNotFound)
{ NSLog(@"Not Found.");
}else{ NSLog (@"Se ha encontrado una coincidencia en la posición: %i", detectar.location); NSLog (@"Está tiene %i caracteres.", detectar.length); }
this code only show 1 "hello" but i need the app show me 3 "hello"