728x90
CGContextRef context = UIGraphicsGetCurrentContext();
[UIView beginAnimations:nil context:context];
[UIView setAnimationCurve:UIViewAnimationCurveEaseInOut];
[UIView setAnimationDuration:1.0];
UIView *whiteBackdrop = self.pageView;
NSArray *array = [self.pageView subviews];
// Choose up or down curl
[UIView setAnimationTransition: UIViewAnimationTransitionCurlUp forView:whiteBackdrop cache:YES];
for (int i=1; i<[array count]; i++)
{
[whiteBackdrop exchangeSubviewAtIndex:[array count]-i withSubviewAtIndex:[array count]-i-1];
}
[UIView setAnimationDelegate:self];
[UIView commitAnimations];
728x90
'Developer > iOS' 카테고리의 다른 글
[iOS] 그림의 상하가 뒤집어지는 애니메이션 (0) | 2011.06.07 |
---|---|
[iOS] UISwipeGestureRecognizer 등록하는 법 (1) | 2011.06.07 |
[iOS] 상위 뷰 컨트롤러 가져오는 법. super viewcontroller (0) | 2011.05.31 |
[iOS] Class 비교하기. (1) | 2011.05.27 |
[iOS] UILabel 의 텍스트 만큼 자동으로 맞추기 (1) | 2011.05.25 |