Developer/iOS

[iOS] 그림의 상하가 뒤집어지는 애니메이션

블로blow 2011. 6. 7. 10:35
728x90

CGContextRef context = UIGraphicsGetCurrentContext();

[UIView beginAnimations:nil context:context];

[UIView setAnimationCurve:UIViewAnimationCurveEaseInOut];

[UIView setAnimationDuration:0.5];


[self.reply_arrow layer].transform = CATransform3DMakeRotation(3.14 * 1, 0, 0, 1);//화살표 그림이 돌아갑니다.


[UIView commitAnimations];

728x90