I have a method that I want to run on every cell in my UITableView, which would update a property in each cell (and the display would consequently reflect the change). How can I do this?
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.
The “cell” shouldn’t really hold any information so you don’t really update a cell.
You update the data model (i.e. the array or whatever) that you are using to store data that then gets displayed in the table.
Then when you want to “update the cells” you just update the data model data and then reload the table with…