I have a table view, and its first row has different style from the rest. After I scrolled the table once, some other rows’ style also become that of the first row. What could be the problem?
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.
Remember that your tableview cells are being reused. So a cell that has been configured for row 0 is then popping back up further down, with its configuration intact. So you’ve got two options here:
When this was mentioned at WWDC it seemed that the second option is preferable, I suspect because it means less messaging of label objects and the like as the table scrolls.