Flip View Iphone

后端 未结 3 661
感动是毒
感动是毒 2020-12-01 01:08

please consider the code below, and tell me what I\'m doing wrong.

I want to flip between two UIViews.

Somehow, when I flip away from the initial view, I jus

3条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-01 01:43

    Can you use your MainWindow (UIWindow) as the container view as UIWindow inherence from UIView?

    Also iPhone 3.0 introduced the flip transaction via the presentModalViewController method:

    CustomViewController *vc = [[CustomViewController alloc]
        initWithNibName:@"CustomViewController" bundle:nil];
    
    vc.delegate = self;
    
    // The magic statement. This will flip from right to left.
    // present the modal view controller then when you dismissModalViewController
    // it will transition flip from left to right. Simple and elegant.
    vc.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;
    
    [self presentModalViewController:vc animated:YES];
    
    [vc release];
    

提交回复
热议问题