I have a UITableView in a UIViewController and a CustomTableViewCell. CustomTableViewCell consist on two things,
- A UIView that will be populated by other custom designed UIViews (Described below),
- A Fixed UIView having some labels
Datasource of a table is some model having properties like
modelType = image, music, video etc. For each model type, I have designed a UIView, which is to be loaded in CustomTableViewCell’s View on the basis of modelType.
My question is “How to pass dataType from UIViewController to CustomTableViewCell and then How to initialize each UIView in the basis of modelType”.