小编epa*_*tel的帖子

Iphone页面卷曲效果

我正在使用此代码用于页面卷曲效果....它在模拟器和设备中工作正常......但它不是(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"]; 
Run Code Online (Sandbox Code Playgroud)

所以我改变并使用这样的方式

[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];
Run Code Online (Sandbox Code Playgroud)

在上面的代码中,我想在中途停止页面卷曲效果..但我不能在中途停止它像ipod中的地图应用程序...这是否有任何修复?或是否有任何苹果记录的方法用于ipod touch中的页面卷曲效果?

我正在寻找很多.但没有得到任何答案?谁能帮我?在此先感谢..plz

iphone

7
推荐指数
2
解决办法
2万
查看次数

Linux上的视频捕获?

我们需要在Linux上轻松捕获实时视频和显示.我们需要一个廉价的卡或USB设备与简单的API.有人想分享一些经验吗?

linux video image-capture video-capture

6
推荐指数
1
解决办法
2万
查看次数

如何使用compare:options对NSArray进行排序

我有一个NSArray包含数字作为NSString对象.即.

[array addObject:[NSString stringWithFormat:@"%d", 100]];
Run Code Online (Sandbox Code Playgroud)

如何以数字方式对数组进行排序?我可以使用compare:options并指定NSNumericSearchNSStringCompareOptions吗?请给我一个示例/示例代码.

sorting iphone compare nsarray

6
推荐指数
2
解决办法
7212
查看次数

“用户数据指针”的良好定义是什么?

我一直在寻找一个好的解释,但找不到。

我可以尝试自己写一个,但我更希望英语更好的人可以帮助我在评论中为 Zan Lynx 解释这一点

...似乎应该在某个地方有一个很好的解释,为什么不在这里呢?

language-agnostic callback user-data

5
推荐指数
1
解决办法
2319
查看次数