开发者

UITableView Selection Addition Problem

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜