开发者

UIViewAnimationTransitionCurlUp and CurlDown with landscape

Please help me find an answer since i searched everywhere in here and many other websites. Am using this code to make the pageCurl effect.

// Start Animation Block

CGContextRef context = UIGraphicsGetCurrentContext();
[UIView beginAnimations:nil context:context]; 
[UIView setAnimationTransition:UIViewAnimationTransitionCurlUp
                       forView:[self view] cache:YES];
[UIView setAnimationCurve:UIViewAnimationCurveEaseInOut]; 
[UIView setAnimationDuration:1.0];

// Start Animation Block

CGContextRef context = UIGraphicsGetCurrentContext();
[UIView beginAnimations:nil context:context]; 
[UIView setAnimationTransition:UIViewAnimation开发者_C百科TransitionCurlDown
                       forView:[self view] cache:YES];
[UIView setAnimationCurve:UIViewAnimationCurveEaseInOut];
[UIView setAnimationDuration:1.0];

As you can see above that am using UIViewAnimationTransitionCurlDown and UIViewAnimationTransitionCurlUp to iterate between several images in a landscapeRight and landscapeLeft orientation. My question is, will my application be accepted by apple?!

Thanks for your help


Just based on this code - I don't see any reason why not, You are not accessing any private API. As long as the rest of the app works (doesn't crash...) and you don't violate any of Apple's other rules.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜