开发者

Change back page alpha value when Page Curl

开发者 https://www.devze.com 2023-04-04 08:33 出处:网络
You may know that page curl effect in iphone, ipad... How can I change back page alpha value. Help fingerDelta = distan开发者_高级运维ceBetweenPoints(currentPos, lastPos);

You may know that page curl effect in iphone, ipad... How can I change back page alpha value. Help

fingerDelta = distan开发者_高级运维ceBetweenPoints(currentPos, lastPos);
filter = [[CAFilter filterWithType:kCAFilterPageCurl] retain];
[filter setDefaults];
CGFloat _angleRad = angleBetweenCGPoints(currentPos, lastPos);
[filter setValue:[NSNumber numberWithFloat:_angleRad] forKey:@"inputAngle"];
[filter setValue:[NSNumber numberWithFloat:fingerDelta] forKey:@"inputTime"];
myView.layer.filters = [NSArray arrayWithObject:filter];

Thanks.

0

精彩评论

暂无评论...
验证码 换一张
取 消