1

下から反転したアニメーションでmapViewにオプションを表示するにはどうすればよいですか?iPhoneの元の地図アプリケーションと同じように?このような:

このような

ありがとう!!

4

2 に答える 2

4

基になるビューをモーダルコントローラーとして提示し、遷移スタイル(部分的なカール)を使用します。このような:

controller.modalTransitionStyle = UIModalTransitionStylePartialCurl;
[self presentModalViewController:controller animated:YES];

更新: iOS6ではこれを行う必要があります:

SecondeViewController *nextView = [[SecondeViewController alloc] init];
nextView.modalTransitionStyle = UIModalTransitionStylePartialCurl;
[self presentViewController:nextView animated:YES completion:Nil];
于 2012-05-11T00:53:24.407 に答える
0
UIViewAnimationTransition transition = UIViewAnimationTransitionCurlUp;
UIViewAnimationCurve curve = UIViewAnimationCurveEaseInOut;
[UIView beginAnimations:@"anim" context:NULL];
[UIView setAnimationCurve:curve];
[UIView setAnimationTransition:transition forView:[self view] cache:YES];
[UIView setAnimationDuration:1.0f];
[UIView commitAnimations];
于 2012-05-11T02:18:29.570 に答える