Mise en page automatique contraintes pour une vue d'un redimensionnement automatique créé en ViewController de loadView

Mon UIViewController crée son point de vue en remplacement de la méthode loadView:

- (void)loadView {
    UIView *view = [[UIView alloc] init];
    view.autoresizingMask = UIViewAutoresizingFlexibleHeight|UIViewAutoresizingFlexibleWidth;
    self.view = view;
}

Maintenant, je voudrais passer à mise en page automatique et, par conséquent, ajouter un

view.translatesAutoresizingMaskIntoConstraints = NO;

à la méthode loadView. Maintenant, je dois spécifier les mêmes contraintes qui ont été générés automatiquement à l'avant. Mon approche a été de remplacer updateViewConstraints avec

- (void)updateViewConstraints {
    if (0 == [[self.view constraints] count]) {
        NSDictionary* views = @{@"view" : self.view};

        [self.view addConstraints:[NSLayoutConstraint constraintsWithVisualFormat:@"H:|[view]|" options:0 metrics:0 views:views]];
        [self.view addConstraints:[NSLayoutConstraint constraintsWithVisualFormat:@"V:|[view]|" options:0 metrics:0 views:views]];
     }

    [super updateViewConstraints];
}

Mais j'obtiens une exception parce que je pense que ce genre de contraintes doit aller avec la super vue:

*** Terminating app due to uncaught exception 'NSGenericException', reason: 'Unable to install constraint on view.  Does the constraint reference something from outside the subtree of the view?  That's illegal.

Alors, comment faire le bon Contraintes à ressembler à?