I want to subclass UITableView as I want to create a reusable table view component in my application.
The idea is not to use a delegate for say cellForRowAtIndexPath. I want the table view to receive this call.
I donβt think I want a UITableViewController, since this UITableView that I want to build must live in different UIViewControllers (and this UIViewController can have its own UITableViews).
I have subclassed my UITableView as:
@interface ShareUITableView : UITableView
but none of his methods are called.
My ShareUITableView is created through the NIB, setting its own class in ShareUITableView. I checked in the code that an instance of ShareUITableView was being created.
My UITableView does not delegate it to the view controller, so no problem.
Any ideas?
source share