Reputation: 33050
What is the Right Way to Implement This?
For example, say 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.
Upvotes: 0
Views: 873
Reputation: 301
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.
Upvotes: 1
Reputation: 11145
You can follow the tutorial for custom cells -
http://cocoawithlove.com/2009/04/easy-custom-uitableview-drawing.html
Upvotes: 3