Extracting and comparing Int in NSMutableArray
===

I am trying to compare the integers in an array to another int in this way:

    if (i == the integers in the array) {
                
            }else {
         
            [image1 addSubview:textname];
                
                }

and...

    indexDelete = text.tag;
                        
    [myIntegers addObject:[NSNumber numberWithInteger:indexDelete - 1]];
                        
    NSLog (@"Array: %@", myIntegers);

The console shows:


    Array: (
    0,
    1,
    2
    )

And i is an integer in a for loop that keeps increasing by 1

Any ideas on how I can do this??

Thanks in advance for your help.

