how to set view controller programmatically for subview in storyboard?
问题 (Designed in storyboard , screenshot below) I have two subviews on my rootviewcontroller's view In my code i want to assign a separate view controller to each subview. i.e Assign a tableViewController to the TableView. I tried to do this in awakeFromNib (or ViewDidLoad) method but to no avail. The delegate method in my tableview controller are never called. I think storyboard does the job of loading the subviews here even before the tableviewcontroller i assign can do something. self