vendredi 27 février 2015

Compare the unique index value with another array in objective C

There is an array having same objects in single array , i need to compare these array’s index with another array.. Give me a help. Something like:


NSMutableArray *latArray = [NSMutableArray arrayWithObjects:@“43.20,@“43.23”,@“43.24”,@“43.20”,nil];


NSMutableArray *lngArray = [NSMutableArray arrayWithObjects:@“76.90”,@“76.94”,@“76.92”,@“76.90”,nil];


NSMutableArray *imagesArray = [[NSMutableArray alloc] initWithObjects:@"1.jpg", @"2.jpg”,@“3.jpg”,@“4.jpg”,nil];


resultResult = @"1.jpg", @“5.jpg” // because the index 0 and index 3 same values in both array.




Aucun commentaire:

Enregistrer un commentaire