我有一个UIViewController从另一个视图控制器内部加载,然后将其视图添加到UIScrollView.
self.statisticsController = [self.storyboard instantiateViewControllerWithIdentifier:@"StatisticsViewController"];
self.statisticsController.match = self.match;
[self.scrollView addSubview:self.statisticsController.view];
我在统计视图控制器中放置了断点并且viewDidLoad被调用但viewWillAppear不是。
是因为我没有把它推到层次结构上吗?