I have 10 UIimages and 10 UIButtons. M assigning Images to buttons via array.
I want my to hide and show the images only on button Click.
Is there any way to hide and show the UIImage whisch is assigned to button via array?????
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.
assign for every UIImage and UIButton the same Tag by setTag proprieties then when you click on a specific UIButton search the array and tag the tag that related to the selected UIButton, Then use the retrieve tag to retrieve the UIImage and use the proprieties setHidden TO Hide/Show it.
and surely you have to use UIImageView instead of UIImage.