• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
CAShapeLayer and touches?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CAShapeLayer and touches?


  • Subject: CAShapeLayer and touches?
  • From: "Eric E. Dolecki" <email@hidden>
  • Date: Tue, 8 Dec 2009 14:34:13 -0500

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 (email@hidden)

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:

This email sent to email@hidden

  • Follow-Ups:
    • Re: CAShapeLayer and touches?
      • From: David Duncan <email@hidden>
  • Prev by Date: [iPhone] UINavigationController and UINavigationBar
  • Next by Date: Re: [iPhone] UINavigationController and UINavigationBar
  • Previous by thread: Re: [iPhone] UINavigationController and UINavigationBar
  • Next by thread: Re: CAShapeLayer and touches?
  • Index(es):
    • Date
    • Thread