I want to use CustomTableViewCell.xib in several classes. But file’s owner is only one. I don’t want to clone CustomTableViewCell.xib to CustomTableViewCell2.xib.
How do I solve the issue?
I want to use CustomTableViewCell.xib in several classes. But file’s owner is only one.
Share
If you are using outlets or actions from your other classes in the nib file then you could gather all these into a superclass (which would itself be a subclass of whatever it is your multiple classes currently inherit from, presumably a UITableViewController in this case) and have your other classes inherit from that (and make the files owner an instance of the superclass).
You would then override these methods as necessary in each of your table view controllers.