Question

I'm presenting a modalViewController with UIModalTransitionStyleCoverVertical and then, when the user selects a row of this modalView, I present another modalView as follows:

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
    CenterViewController *nextView = [[CenterViewController alloc] init];

    nextView.modalPresentationStyle = UIModalTransitionStyleFlipHorizontal;
    [self presentModalViewController:nextView animated:YES];
    [nextView release];
}

The problem is that the transition style remains UIModalTransitionStyleCoverVertical no matter what type of transition style mode I initialize for this second modal view controller.

Am I missing something relevant? Thanks in advance.

Was it helpful?

Solution

UIModelPresentaionStyle is used to tell iOS you want it FullScreen or PageSheet..etc. , in your case you should use UIModelTransitionStyle .. so if you did like this it should work.

nextView.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;

OTHER TIPS

I'd try removing the old one first, and then presenting the new one.

Doesn't sound like a great technique though. Why not have you first modal view controller be some sort of container controller, and present the new view with a flip.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top