开发者

UITableView Selection Addition Problem

开发者 https://www.devze.com 2023-01-26 08:20 出处:网络
Having this problem that needs to be adressed unfortunately.... 开发者_开发知识库I am adding a custom UIButton to my UITableView Cell when it is selected however as I scroll down into the TableView I

Having this problem that needs to be adressed unfortunately....

开发者_开发知识库

I am adding a custom UIButton to my UITableView Cell when it is selected however as I scroll down into the TableView I find that multiple cells are getting the buttons attached:

Here is my code:

http://pastie.org/1309795

What am I doing wrong?!


You're being bitten by cell reuse. You need to learn how to sanitize your cells when you get a cell that has been recycled.

0

精彩评论

暂无评论...
验证码 换一张
取 消