iphone - Paper 'Unfold' Animation on a UIView -


i want create 'unfold' animation uiview appears on screen. example of animation can viewed in this youtube video reviews superlist app (another example of animation can viewed in app's app store page in screenshots section).

paper 'unfold' animation

i have quite understanding of core animation , objective c, cocoa , cocoa touch. app support versions 5.x , 4.x of ios so, if possible, prefer solution suits both cases.

moreover, have googled question thousand times , failed answers, appreciated. ahead, ilyrical.

apparently, 'uncurl' effect built-in framework , use! have do, use animatewithduration: animation: method of uiview class , include animation follows:

[uiview animatewithduration:1.0                      animations:^{                          catransition *transition = [catransition animation];                          [transition setdelegate:self];                          [transition setduration:0.7];                          [transition settimingfunction:[camediatimingfunction functionwithname:kcamediatimingfunctioneasein]];                          [transition settype:@"pageuncurl"];                          [self.view.layer addanimation:transition forkey:@"pageuncurl"];                          [self.view addsubview:someview.view];                      }]; 

the note image (white page) in case has transparent section (all side) , when uncurl happens looks white part uncurling.


Comments

Popular posts from this blog

jquery - Invalid Assignment Left-Hand Side -

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -