Search code examples
iossegue

Does this segue still exist in iOS9?


I seem to recall a few years back that Apple Maps had a segue that would roll back the map from the bottom right corner to reveal options such as 2D/3D, add traffic conditions etc. But the map was still partially visible.

Does this segue still exist? I'm presenting information about various beers... ABV for example.. but there are many others. I want to add an information button that will present the definition of (Alcohol By Volume) without transitioning abruptly to completely different View.


Solution

  • You may use the following animation for subView UIViewAnimationTransitionCurlUp. Here is the sample code:

    [UIView beginAnimations:@"PartialPageCurlEffect" context:nil];
    [UIView setAnimationDuration:0.3];
    [UIView setAnimationCurve:UIViewAnimationCurveEaseInOut];
    [UIView setAnimationTransition:UIViewAnimationTransitionCurlUp forView:myOldSubViewController.view cache:YES];
    [myOldSubViewController.view addSubview:myNewViewController.view];
    [UIView commitAnimations];