views:

9

answers:

0

Hi,

I have succesifully customized a UITableView component in my UIViewController with all kind of stuff. Like borders on top, sides and bottom, spaces between cells and etc...

The problem is that I have done this in the implementation file of my UIViewController.

I want to create a UITableView component with all that already in it, so I don't have to copy the code everytime I want to use that table, for example the component wouls be called JOAOTableView.

But would have to overwrite the cellForRowAtIndexPath, didSelectRowAtIndexPath, and heightForRowAtIndexPath method and a bunch of properties of the table. Can anyone give an example on how to do that?