I have 6 custom cells in tablview. All custom cell has 2 types data. First is label. And 2nd is different from each one. So, I want to use here inheritance. like this : Base custom cell class contains : label 1 ,and label 2. child custom cell class contains : label 1, label 2 and other components which are different from each other custom cell.
So, in short, I want to make labels in custom cell or without custom cell and inherit in all (6) custom cell. But I don't know how to do it. Any suggestion will be great . Thank in advance .
Depending on how you created your cell (in interface builder or not) this should be easy. I would recommend creating your cell in code, and then inherit the cell (usually you would use UITableViewCell now create your base cell class and inherit new cells from your new custom cell i.e. MyCustomBaseTableViewCell).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With