viewWillAppear wird nicht aufgerufen, wenn der Tabellensichtzelle @ ein untergeordneter Controller hinzugefügt wir

Wenn ich einen Child-View-Controller zur Tabellenzelle hinzufüge, sieht es aus wie viewWillAppear für Child View Controller wird nicht aufgerufen, nur viewDidAppear.

Table View Controller-Methode:

override func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell
{
    let cell = tableView.dequeueReusableCellWithIdentifier("ShopInfoTableViewCell", forIndexPath: indexPath) as! ShopInfoTableViewCell
    self.addChildViewController(self.shopInfoViewController, toView: cell.containerView)
    return cell
}

View Controller Kategoriemethode:

- (void)addChildViewController:(UIViewController *)childController toView:(UIView *)view
{
    [self addChildViewController:childController];
    [view addSubview:childController.view];
    [childController didMoveToParentViewController:self];

    [childController.view mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(view.mas_top);
        make.bottom.equalTo(view.mas_bottom);
        make.left.equalTo(view.mas_left);
        make.right.equalTo(view.mas_right);
    }];
}

Irgendwelche Ideen, warum es passiert?

Antworten auf die Frage(4)

Ihre Antwort auf die Frage