• 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
Re: UIButton events on a CALayer
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: UIButton events on a CALayer


  • Subject: Re: UIButton events on a CALayer
  • From: David Duncan <email@hidden>
  • Date: Tue, 30 Jul 2013 10:18:03 -0700

On Jul 29, 2013, at 5:52 PM, Ian was here <email@hidden> wrote:

> I've added a UIButton to a CALayer. The button appears as it should, but the button won't send a touch event. I've Googled around on this subject, but haven't found a solution that works in this case. Has anyone come across this issue?


You should follow Kyle's advice, but at the heart of your problem is that CALayers don't understand events in any way shape or form, thats what UIView adds. By interposing a CALayer, you've effectively broken the event handling and thus broken your button.
--
David Duncan

_______________________________________________

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


References: 
 >UIButton events on a CALayer (From: Ian was here <email@hidden>)

  • Prev by Date: Re: Mixing Obj-C and C "methods"
  • Next by Date: Re: Exiting non-POSIX threads?
  • Previous by thread: Re: UIButton events on a CALayer
  • Next by thread: Re: Trying to understand/prevent crash using restorableStateKeyPaths in NSPersistentUI Work
  • Index(es):
    • Date
    • Thread