reusing elements in tableview cell
I am adding a textfield to each row in ta开发者_开发技巧bleview and releasing it after adding it to the cell.
I want to reuse when UIButton is clicked.
I tried some methods but it does n't worked. Help me how to reuse it.
Try to do an custom cell view. Subclass the UITableViewCell and use the normal reuse of cells, that is the best way to do it. Improves scrolls on slow devices like iPhone 3G.
Take a look here.
精彩评论