You can not add a UITableView inside UIImageView.
You can take a UIView and add UIImageView and UITableView inside this view.
let bgView = UIView.init(frame: self.view.frame) //Frame of the view
let imageView = UIImageView.init(frame: CGRect.init(x: 0, y: 0, width: bgView.frame.width, height: bgView.frame.height))
imageView.image = #imageLiteral(resourceName: "imgDefault")
let tableView = UITableView.init(frame: CGRect.init(x: 0, y: 0, width: bgView.frame.width, height: bgView.frame.height))
tableView.backgroundColor = UIColor.clear
bgView.addSubview(imageView)
bgView.addSubview(tableView)
self.view.addSubview(bgView)
solved How to add a UITableview inside a UIImageview programmatically in Swift 3