http://postimg.org/image/jasludl81/ <---link to a sample image
Hi All. I just started to learn IOS programming, so please be kind. :) Here's my dilemma:
I need a control that fires touchDown, touchUpInside, touchUpOutside and touchDragEnter events. So a UIButton seems to be the most logical element to accomplish this, right? I also need the buttons to be in a shape of a circle and can be placed on top of each other.
I have accomplished the first requirement: have them of in a shape of a circle. The issue now is: since a button is rectangular by default, the corners can still fire the touch events. This would be fine if a button is on the canvas on its own. But, if a circle button is on top of another, touch events fire the wrong event when a user taps close enough to the corner of the topmost button.
Question: How can I avoid this situation? What alternative do I have if this issue can't be fixed using a UIButton? If I use another control, it needs to have support for the touch events mentioned above.
Thanks in advance!