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 setAnimationTransitionUIViewAnimationTransitionCurlUp 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];

'컴퓨터 > 아이폰' 카테고리의 다른 글

파일 관련 자료  (0) 2012.01.18
sqlite에 관한거..  (0) 2012.01.17
Gesture 인식 샘플  (0) 2011.12.15
현재화면 캡쳐하기  (0) 2011.12.15
String -> MD5(암호) 변환 샘플  (0) 2011.12.15
      
Posted by k_ben