Iphone页面卷曲效果 [英] Iphone page curl effect
问题描述
我正在使用此代码进行Page curl效果....它在模拟器和设备中运行良好......但它不是(setType:@pageCurl)苹果记录的api,这导致它被iPhone拒绝App Store审核过程中的开发者计划:
I am using this code for Page curl effect ....Its work fine in simulator and device... But its not (setType:@"pageCurl") apple documented api , this caused it to be rejected by the iPhone Developer Program during the App Store review process:
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"];
所以我改变并使用这样的
So i changed and using like this
[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中的页面卷曲效果?
In this above code i want to stop the page curl effect at midway.. But i cant stop it in midway like map applications in ipod... Is this any fix for this? or Is there any apple documented methods used for page curl effect in ipod touch?
我正在搜索很多。但没有得到任何答案?谁能帮我?
提前致谢..plz
I am searching lot. but didnt get any answer ? can anyone help me? Thanks in advance..plz
推荐答案
我可以吗?
SampleViewController *sampleView = [[[SampleViewController alloc] init] autorelease];
[sampleView setModalTransitionStyle:UIModalTransitionStylePartialCurl];
[self presentModalViewController:sampleView animated:YES];
......
这篇关于Iphone页面卷曲效果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!