【问题标题】:UIViewAnimationTransitionCurlUp and CurlDown with landscapeUIViewAnimationTransitionCurlUp 和 CurlDown 与横向
【发布时间】:2011-07-28 03:00:34
【问题描述】:

请帮我找到答案,因为我在这里和许多其他网站到处搜索。我正在使用此代码制作 pageCurl 效果。

// 启动动画块

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

// 启动动画块

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

正如您在上面看到的,使用 UIViewAnimationTransitionCurlDown 和 UIViewAnimationTransitionCurlUp 在 LandscapeRight 和 LandscapeLeft 方向的多个图像之间进行迭代。我的问题是,我的申请会被苹果接受吗?!

感谢您的帮助

【问题讨论】:

    标签: iphone uiimage landscape uiinterfaceorientation page-curl


    【解决方案1】:

    仅基于此代码 - 我看不出有任何不这样做的原因,您没有访问任何私有 API。只要应用程序的其余部分正常工作(不会崩溃......)并且您没有违反任何 Apple 的其他规则。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2016-01-12
      • 2011-10-10
      • 1970-01-01
      • 2014-06-12
      • 1970-01-01
      • 2012-03-29
      • 2015-09-09
      相关资源
      最近更新 更多