ViewDidLoad not called when adding to Container View
I have a container view set up in my storyboard file but I want to embed the view controller programmatically after setting some properties. This is my code in the parent VC's viewDidLoad: _workoutVC = [[UIStoryboard storyboardWithName:@"Main" bundle:nil] instantiateViewControllerWithIdentifier:@"entryTableVC"]; _workoutView = _workoutVC.tableView; [self addChildViewController:_workoutVC]; [_workoutVC.tableView setFrame:_container.bounds]; [_container addSubview:_workoutView]; However, viewDidLoad in the child is not called at any time. When I run the simulator my container view is blank. I've
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.