I need to create a custom control with irregular shape, and only the visible area of that shape has the clickable area. For instance a “Star”. Any help is really appreciated.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
i think what you are looking for are irregularly shaped UIButtons, there is a good tutorial on this right here: Irregularly shaped UIButtons
Another way is to work with
Quartzand draw the buttons shape in thedrawRectfunction, someone asked this before and got an answer right here: Custom UIButton Shape without using an imagePS: next time try to google first, there is a ton of tutorials and how to’s on such things 🙂