I have the NSMutableArray with following values:
NSMutableArray *array = [[NSMutableArray alloc]initWithObjects:@"1",@"2",@"3",@"4",@"5", nil];
This is my For loop:
for(int i=0; i<30; i++)
{
//here I want to compare each object from above array with value of i from for loop. and add the further output. e.g.
if(i== object from array)
{
//do this
}
}
Actually I have just five objects or values in array so how can I compare each value of i with each object or values of NSMutableArray.