What would be the code to modify the properties of a button (that was created programmatically) knowing its name and tag. (the amount of buttons created isn’t always the same, that’s why i assigned a tag to the buttons created)
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.
You could use
viewWithTag:The advantage of this is that if you have multiple buttons with the same changes you can easily loop through the different buttons
This assumes your tags start from 1 and increment.