How would you implement UIView hitTest mehtod?
Anonymous
UIView * hitTest(UIView *view, CGPoint point, UIEvent *event) { if (view == nil) return nil; if (CGRectContainsPoint(view.bounds, point)) return view; else hitTest(view.superView, point, event); }
Check out your Company Bowl for anonymous work chats.