表示したい uiviewを mymapview とする
// アニメーション処理
[UIView beginAnimations:nil context:NULL];
// 0.75秒で
[UIView setAnimationDuration:0.75];
// クルッと回る
[UIView setAnimationTransition:UIViewAnimationTransitionFlipFromLeft forView:self.view cache:YES];
if(mymapview.superview) {
// newViewが他のViewにAddされてる場合、親Viewから削除
[mymapview removeFromSuperview];
} else {
// newViewが他のViewにAddされていない場合、self.viewにAdd
CGRect rect ;
// rect.size.width = self.view.frame.size.width;
// rect.size.height = self.view.frame.size.height;
[mymapview drawRect:rect];
[self.view addSubview:mymapview];
}
[UIView commitAnimations];
0 件のコメント:
コメントを投稿