2012-07-01 10 views
8

Tengo el siguiente código en un UIStoryBoardSegue para hacer una transición de inserción curl-up.Custom UIStoryboardSegue Push and Pop animaciones coincidentes

(void) perform { 

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

    [UIView transitionWithView:src.navigationController.view duration:1 
         options:UIViewAnimationOptionCurveEaseInOut | UIViewAnimationOptionTransitionCurlUp 
        animations:^{ 
         [src.navigationController pushViewController:dst animated:NO]; 
        } 
        completion:NULL]; 

} 

Funciona bien, pero cuando me toque en los botones "Atrás" en la aplicación, se desliza hacia atrás en lugar de hacia abajo de curling. Como esto es un impulso, necesito abrir el controlador de vista actual en lugar de agregar otro segue.

¿Cómo hago un "pop-segue curl-down"?

Respuesta