Initialize CustomViews in CustomTableViewCell on the basis of some condition

I have a UITableView in a UIViewController and a CustomTableViewCell. CustomTableViewCell consist on two things,

  1. A UIView that will be populated by other custom designed UIViews (Described below),
  2. 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”.