2011-11-07 4 views

答えて

1

あなたのビューコントローラに以下のコードを入れてください:

CATransform3D t3d = CATransform3DIdentity; 
// m34 sets the amount of perspective 
t3d.m34 = 1.0/-1000.0; 

[UIView animateWithDuration:1.0 
         delay:0.0 
        options:UIViewAnimationCurveLinear 
       animations:^{ 
        self.view.layer.transform = CATransform3DRotate(t3d, M_PI, 0, 1, 0); 
       } 
       completion:^(BOOL finished) { 
        [UIView animateWithDuration:1.0 
              delay:0.0 
             options:UIViewAnimationCurveLinear 
             animations:^{ 
              self.view.layer.transform = CATransform3DRotate(t3d, 2*M_PI, 0, 1, 0); 
             } 
             completion:^(BOOL finished) { 
              self.view.layer.transform = CATransform3DIdentity; 
             }]; 
       }]; 

誰もが私に知らせて、これをクリアする方法上の任意の提案を持っている場合には、かなり厄介だ;)

+0

おかげで病気にそれを試してみてください – Eyal