2009-09-21 66 views

回答

3
[UIView beginAnimations:nil context:NULL]; 
[UIView setAnimationDuration:0.2]; 
[UIView setAnimationTransition:UIViewAnimationTransitionCurlUp forView:yourView cache:YES]; 
[yourView changeSomethingToThePositionOrWhatever]; 
[UIView commitAnimations]; 
2
[UIView beginAnimations:@"" context:nil]; 
[UIView setAnimationTransition:UIViewAnimationTransitionCurlUp forView:self.view cache:YES]; 
[UIView setAnimationDuration:1.0]; 

// Make your changes 
// show and hide views 


[UIView commitAnimations]; 

also check docs