views:

22

answers:

1

I want to make an animation like SwichView example in "Beginning iPhone development". My animation code:

    [UIView beginAnimations:@"View Flip" context:nil];
    [UIView setAnimationDuration:1.25];
    [UIView setAnimationCurve:UIViewAnimationCurveEaseInOut];

    [UIView setAnimationTransition:
    UIViewAnimationTransitionFlipFromRight
                           forView:self.view cache:YES];

    [blueViewController viewWillAppear:YES];
    [yellowViewController viewWillDisappear:YES];
    [blueViewController.view removeFromSuperview];
    [self.view insertSubview:yellowViewController.view atIndex:0];
    [yellowViewController viewDidDisappear:YES];
    [blueViewController viewDidAppear:YES];

    [UIView commitAnimations];

alt text

But i want my Toolbar don't "flip" with another view. I don't want it perform any animation. Can i do it?

Here is SwitchView example:

http://www.mediafire.com/?lirh0ydcy6c2f9d

A: 

See TransitionViewController.m in Apple's UICatalog sample code.

Nimrod
Thanks for your help :)
leduchuy89vn
No prob, but if this answers your question you should vote it up and click the checkmark to accept the answer.
Nimrod