UIView animation not working
Posted
by Daniel
on Stack Overflow
See other posts from Stack Overflow
or by Daniel
Published on 2010-03-27T03:54:49Z
Indexed on
2010/03/27
4:03 UTC
Read the original article
Hit count: 365
I have the following code to do a UIView animation:
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:1.0];
[UIView setAnimationDelegate:self];
[UIView setAnimationTransition:UIViewAnimationTransitionFlipFromRight forView:mapView.view cache:NO];
[self addSubview:detailView];
[mapView removeFromSuperview];
[UIView commitAnimations];
It works when I dont add the detailView. What actually happens is the equivalent of this:
[self addSubview:detailView];
[mapView removeFromSuperview];
Please help.
© Stack Overflow or respective owner