Custom Segue Animation

Я пытаюсь использовать пользовательский переход для выполнения анимации с увеличением. Когда переход выполнен, sourceViewController становится черным, затем происходит масштабирование.

Попытался также установить pushViewController: в блок завершения, но переход не выполняется вообще.

- (void)perform {

    UIViewController *sourceViewController = (UIViewController *) self.sourceViewController;
    UIViewController *destinationViewController = (UIViewController *) self.destinationViewController;

    [destinationViewController.view setTransform:CGAffineTransformMakeScale(0.5,0.5)];
    [destinationViewController.view setAlpha:0.0];

    [UIView animateWithDuration:0.5
                          delay:0.0
                        options:UIViewAnimationCurveEaseOut 
                     animations:^{
                         [destinationViewController.view setTransform:CGAffineTransformMakeScale(1.0,1.0)];
                         [destinationViewController.view setAlpha:1.0];
                         [sourceViewController.navigationController pushViewController:destinationViewController animated:NO];
                     } 
                     completion:^(BOOL finished){
                     }];

}

Что я делаю не так?

Ответы на вопрос(1)

Ваш ответ на вопрос