i did this ( i tried on both end in timer() and touchMOve()
objectsArray = [[NSMutableArray alloc] init];
[objectsArray addObject:newItem];
[self addSubview: newItem];
for (int count3=1; count3 < 70; count3++){
if(CGRectIntersectsRect(newItem.frame, wood.frame)){// touchlocation -->both not working
NSLog(@"Collision ");
newItem.hidden = YES;
}
|