I want to create custom UIButton like
[
IMAGE here
text here
]
How can I do it?
Please help
Thanks
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.
Here’s how you might do it:
Define a button, image view, and a label in IB and drag and resize the button to it’s full size. Then, position the image view and label ‘inside’ the button. Set the image and the text and then set their userInteractionEnabled properties to NO, so that all touches are passed to the underlying button. Voila.