Iphone 视图效果 电子书翻页效果
[UIView beginAnimations:@"animationID" context:nil];
[UIView setAnimationDuration:1.5f];
[UIView setAnimationCurve:UIViewAnimationCurveEaseInOut];
[UIView setAnimationRepeatAutoreverses:NO];
[UIView setAnimationTransition:UIViewAnimationTransitionCurlUp forView:self.view cache:YES];
[self.view exchangeSubviewAtIndex:1 withSubviewAtIndex:0];
[UIView commitAnimations];
备注:需要保证桟中有大于等于两个视图 self.view exchangeSubviewAtIndex:1 withSubviewAtIndex:0];此句是用于视图切换的关键,我们可以根据需要进行想要更改。