开发者

Custom UITableView Cell

What is the Right Way to Implement This?

For example, sa开发者_Python百科y I created an XIB file with a button in it. Say a button on that custom controller get pressed, how do the program knows which "row" of the UITableView get pressed? Does each row has their own UITableViewCell Controller?

There has to be one right way to design this.


You can follow the tutorial for custom cells -

http://cocoawithlove.com/2009/04/easy-custom-uitableview-drawing.html


You are asking about two different controls (buttons and cells), but anyway both have a similar way to "communicate" with the controller. With the button's tag and the cell's index, you have enough to be able to manage the use of these controls.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜