UIButton: Need a circle hit area

Posted by Pavan on Stack Overflow See other posts from Stack Overflow or by Pavan
Published on 2009-06-05T00:11:55Z Indexed on 2010/05/27 4:21 UTC
Read the original article Hit count: 393

Ok I have 6 custom UIButtons. Their normal state image are all circles images. They are all spaced out equally but all the circles touch each other.

The problem with the custom UIbutton (which has a circle image on it), is that the hit area of that button is square, and the corners of this square overlaps the hitarea of the other custom button's hitarea.

How do i make the hit area of a UIbutton whos normal state has a circle image, be only clickable on that circle only, rather than the normal square hit area?!

I hope that someone can find a way for me to solve this problem that i currently am having!

Thanks in advance

Pavan

© Stack Overflow or respective owner

Related posts about iphone

Related posts about custom