【发布时间】:2010-03-27 14:17:47
【问题描述】:
我正在将此代码用于 Page curl 效果 ....它在模拟器和设备中工作正常...但它不是 (setType:@"pageCurl") 苹果记录的 api ,这导致它被 iPhone 拒绝App Store审核过程中的开发者计划:
animation = [CATransition animation];
[animation setDelegate:self];
[animation setDuration:1.0f];
animation.startProgress = 0.5;
animation.endProgress = 1;
[animation setTimingFunction:UIViewAnimationCurveEaseInOut];
[animation setType:@"pageCurl"];
[animation setSubtype:@"fromRight"];
[animation setRemovedOnCompletion:NO];
[animation setFillMode: @"extended"];
[animation setRemovedOnCompletion: NO];
[[imageView layer] addAnimation:animation
forKey:@"pageFlipAnimation"];
所以我改变并像这样使用
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:1];
[UIView setAnimationDelegate:self];
[UIView setAnimationBeginsFromCurrentState:YES];
[UIView setAnimationCurve:UIViewAnimationCurveLinear];
[UIView setAnimationWillStartSelector:@selector(transitionWillStart:finished:context:)];
[UIView setAnimationDidStopSelector:@selector(transitionDidStop:finished:context:)];
// other animation properties
[UIView setAnimationTransition:UIViewAnimationTransitionCurlUp
forView:imageView cache:YES];
// set view properties
[UIView commitAnimations];
在上面的代码中,我想在中途停止页面卷曲效果..但我不能像 ipod 中的地图应用程序一样中途停止它...这是解决这个问题的方法吗?或者是否有任何苹果记录的方法用于 ipod touch 中的页面卷曲效果?
我正在寻找很多。但没有得到任何答案?谁能帮我? 在此先感谢..plz
【问题讨论】:
-
你好。所以你确实使用了@pagecurl 类型并且应用被拒绝了?
-
如果您想进行部分卷曲,但要保持工具栏静止,就像在 Apple 的地图应用中一样,请查看我的解决方案 here。
标签: iphone