I was trying to detect when two imageviews (equally sized circles) overlap, and i was going to call a method every 0.01 seconds and using the below code. I thought there may be a better way to do this but i couldnt find out how. Any advice is greatly appreciated!
Code:
if (image1.center.x - image2.center.x = 75) {
if (image1.center.y - image2.center.y = 75) {
//Whatever I want
}
}