What I think you are trying to do is put the UIViewController into a dynamically created UITableViewCell. If so, it is not possible if the generated cell is dynamic. If you know a priori that cells will always have a fixed number, you can generate them using the interface builder by setting the cells to static.
If instead you want to add a container view to your cell to place other objects in it, you need to add a UIView object, not a UIViewController.
source share