One Quickie


Converting touch coordinate to the view (UIView->General)
- (void) touchesEnded: (NSSet *) touches  withEvent: (UIEvent *) event {
    UITouch *touch = [touches anyObject];
    CGPoint point = [touch locationInView: self];
    if (CGRectContainsPoint(self.bounds, point)) {
        NSLog (@"YAY!");
    }

} // touchesEnded



borkware home | products | miniblog | rants | quickies | cocoaheads
Advanced Mac OS X Programming book

webmonster@borkware.com