How to make UINavigationController use flip animation while UIViewController

Now I have four UITableViewControllers.

  • AND
  • B1, B2
  • WITH

I need the following effect:

  • Select an item on A that can be pressed on B1
  • Touch the rightBarButtonItem on B1, which can be flipped horizontally to B2
  • Touch the rightBarButtonItem on B2 that can be flipped horizontally on B1
  • Select an item on B1 or B2 to press the C button
  • Can be placed in on B1 or B2

All views (A, B1, B2 and C) must have a NavigationBar.

Now I can move between A, B1, B2, C. I can also flip to B2 using the following code:

//self is B1
- (IBAction)b2ButtonPressed
{
    B2ViewController* B2 = [[B2ViewController alloc] init];
    B2.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;

    [self presentModalViewController:B2 animated:YES];
}

But on B2 there is no NavigationBar value.

I have an application on my iPod touch that has this feature. How can I do it myself?

+5
2

, , , :

- (IBAction)b2ButtonPressed
{
  B2ViewController* B2 = [[B2ViewController alloc] init];
  UINavigationController *B2Nav = [[UINavigationController alloc] initWithRootViewController:B2];   
  B2Nav.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;
  [self presentModalViewController:B2Nav animated:YES];
  [B2 release];
  [B2Nav release];
}

B2ViewController.

+5

UIView animations, B1 , B2 ?

, , .

+2

All Articles