开发者

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.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜