Flip transiton in iPhone
I am facing problems in fliping views in iPhone.

I have two views in appDelegate. I want to flip them once user clicks on a button.

I have the following code

CATransition *transition = [CATransition animation];
	
transition.duration = 0.75;
[transition @"twist"];
[transition setSubtype:@"fromRight"];

transition.timingFunction = [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut];
[transition setFillMode:@"extended"];
	
[[window layer] addAnimation:transition forKey:nil];
	
	
[window addSubview:self.s.view];
[CATransaction commit];



But this is not working. Do anybody knows a better way to flip the views on window side.

what I am doing is calling the method in appDelegate from the respective viewControllers to flip the views.

Flip transiton in iPhone
===

I am facing problems in fliping views in iPhone.

I have two views in appDelegate. I want to flip them once user clicks on a button.

I have the following code

CATransition *transition = [CATransition animation];
	
transition.duration = 0.75;
[transition @"twist"];
[transition setSubtype:@"fromRight"];

transition.timingFunction = [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut];
[transition setFillMode:@"extended"];
	
[[window layer] addAnimation:transition forKey:nil];
	
	
[window addSubview:self.s.view];
[CATransaction commit];



But this is not working. Do anybody knows a better way to flip the views on window side.

what I am doing is calling the method in appDelegate from the respective viewControllers to flip the views.
