Is there any way of changing the UITableViewCellAccessory in the didSelectRowAtIndexPath function?
I need to change a “play”-icon to a “stop”-icon..
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.
You can get a pointer to the table cell in question by using the method
and passing the indexPath that is passed in as a parameter to
didSelectRowAtIndexPath:and then change it’saccessoryViewproperty. Like this:Where
stopIconViewis likely to be a UIImageView or something.