iOS - Drag and drop collision detection How to detect when your selected item drags over another subview?
问题 We are adding drag and drop functionality to what is to become a sports field with positions for players. The positions are mapped out using Interface Builder with each being a separate UIImageView. We want to be able to drag player images from bench positions from the side of the screen onto positions on the field. How best can we detect when the selected player which is being moved around collides with an existing gamePosition imageView? We are looking for a way to detect if there is a view