BOOL isnot=true;
for(BGAddressAnnotation * old in oldAnnot){
if(new.myBiz==old.myBiz){
//[self animationOutAndInBetweenNew:new andOld:old];
isnot=false;
}else{
}
}
At first I was confused why my programmer did that rather than just use NSArray containsObject. Then I realized. He's not looking if the object is in an array.
The array is of type BGAddressAnnotation. Each of which contains a reference to myBiz. He wants to know if the biz is contained inn oldAnnot.
Is there a quicker way to do it using say, keyPath, or is his way is indeed the way