Skip to content

Instantly share code, notes, and snippets.

@ejknapp
Created September 19, 2012 01:26
Show Gist options
  • Save ejknapp/3747093 to your computer and use it in GitHub Desktop.
Save ejknapp/3747093 to your computer and use it in GitHub Desktop.
Hit Test sample
DCIDrawView *view = (DCIDrawView *)[self.view hitTest:location withEvent:nil];
if (self.view != view) {
self.highlightedView = view;
self.highlightedView.highlighted = YES;
[self.highlightedView setNeedsDisplay];
} else {
self.highlightedView = nil;
self.highlightedView.highlighted = NO;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment