パネルみたいに回ったりめくれたり
これiphoneぽいですよねw
ちょっとやってみた
xxxViewController.h
#import <UIKit/UIKit.h> @interface xxxViewController : UIViewController { UIImageView *imageView; } @property (nonatomic, retain) IBOutlet UIImageView *imageView; - ( IBAction ) touch_image:(id) sender; //画面触ったらaction起こるようにする @end
xxxViewController.m
#import "xxxViewController.h" @implementation xxxViewController @synthesize imageView; // Implement viewDidLoad to do additional setup after loading the view, typically from a nib. - (void)viewDidLoad { [super viewDidLoad]; //起動時の画像をimageViewにセット imageView.image = [ UIImage imageNamed: @"img1.jpg" ]; } - ( IBAction ) touch_image:(id) sender { //画面にタッチしたら呼ばれるアクション [ UIView beginAnimations: @"samapleAnimation" //この名前でアニメーションを定義する context: nil ]; [ UIView setAnimationTransition:UIViewAnimationTransitionCurlUp // 上にめくれる感じ // UIViewAnimationTransitionCurlDown 下にめくれる感じ // UIViewAnimationTransitionFlipFromRight 右から左へ回転する感じ // UIViewAnimationTransitionFlipFromLeft 左から右へ回転する感じ forView: imageView // このビューにたいして適用 cache: YES ]; // 表示内容をキャッシュ imageView.image = [ UIImage imageNamed: @"img2.jpg" ]; // 変わる画像 [ UIView commitAnimations ]; // アニメーション定義完了と実行 }