I want something like
-(UIView*) fromPoint: (CGPoint) point inView:(UIView*) superView
Is something like this already present? I want to be able to successfully replace the contents of any two of the UIImageView out of many, if you drag and drop them onto another.
UIImageView
One way to do this is to check all child objects if they contain the provided point. Is there another way?
Thanks.
Running hitTest on a UIView will return a subheading if the hit test is displayed in its hierarchy
- (UIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event
event will be null for what you want