UIView / UIViewController右上角的页面卷曲

时间:2013-04-21 21:26:28

标签: ios animation uiview uiviewcontroller page-curl

我正在寻找从右上角开始的部分页面卷曲(但会满足于整页卷曲)。

我已成功使用:

成功完成此操作
CATransition *animation = [CATransition animation];
[animation setDelegate:self];
[animation setDuration:1.0];
CAMediaTimingFunction *fun=[CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut];
[animation setTimingFunction:fun];
animation.type = @"pageCurl";
animation.subtype=@"fromRight";
animation.fillMode = kCAFillModeForwards;
animation.endProgress = 0.75;
[animation setRemovedOnCompletion:NO];
[[bckground layer] addAnimation:animation forKey:@"pageCurlAnimation"];

但由于这使用了私有API,因此我无法在提交应用时被拒绝。

任何人都知道如何从右上角开始UIViewAnimationOptionTransitionCurlUpUIModalTransitionStylePartialCurl工作?

1 个答案:

答案 0 :(得分:2)

您的代码中没有私有API。我在成功提交到appstore的应用程序中使用了相同的代码。

私有API意味着使用未记录的方法。未记录的字符串值是okey。