I have a CAShapeLayer and I'd like to drag it. I have this code which I
can't configure correctly:

- (void) touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {

UITouch *touch = [[event allTouches] anyObject];
if( CGRectContainsPoint([pointerLayer bounds], [touch
locationInView:pointerLayer] )){

NSLog(@"touched the pointer");

}

}

Looks like that method expects a UIView - what's the best way to access the
CAShapeLayer to know whether or not a user's touched it? Then I'd like to
constrain drag it.

Thanks,
Eric
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to