flipするアニメーション
[UIView setAnimationDuration:1]の単位をミリ秒だと勘違いして1000って入れていたせいでアニメーションがうまく設定されていないように見えて(実は超スロー)はまった。
[UIView beginAnimations:nil context:NULL]; [UIView setAnimationDuration:1]; [UIView setAnimationTransition:([self.optionView superview] ? UIViewAnimationTransitionFlipFromLeft : UIViewAnimationTransitionFlipFromRight) forView:self.view cache:YES]; if ([self.optionView superview]){ [self.optionView removeFromSuperview]; [self.view addSubview:self.mainView]; }else{ [self.mainView removeFromSuperview]; [self.view addSubview:self.optionView]; } [UIView commitAnimations];