Detect pixel collision/overlapping between two images
问题 I have two UIImageViews that contain images with some transparent area. Is there any way to check if the non-transparent area between both images collide? Thanks. [UPDATE] So this is what I have up until now, unfortunately it still ain't working but I can't figure out why. if (!CGRectIntersectsRect(frame1, frame2)) return NO; NSLog(@"OverlapsPixelsInImage:withImage:> Images Intersect"); UIImage *img1 = imgView1.image; UIImage *img2 = imgView2.image; CGImageRef imgRef1 = [img1 CGImage];