开发者

reusing elements in tableview cell

开发者 https://www.devze.com 2023-02-04 02:18 出处:网络
I am adding a textfield to each row in ta开发者_开发技巧bleview and releasing it after adding it to the 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.

0

精彩评论

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