can you please tell me if it is possible to use an uiimage view as uialertview button “text”?
i was unable to find the answer googling..
thanks a lot
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.
Yes, it is possible, but I wouldn’t recommend it. You’d have to run through the UIAlertView’s subviews until you find one that is of the right class, I would assume UIButton, and add your UIImageView on top like this:
To determine the correct button, you might initially give it some odd text like “foobar5” and test each button to see if that is its text, and if so, remove the text and add the UIImageView.