如何在webView中给页面curlanimation?

我正在使用PDF阅读器应用程序。 如果我显示PDF文件,那么我不能够改变这个字体的大小。

所以我在UIWebView中显示ePub文件。 但我的问题是如何像iBook和kindle应用程序一样在UIWebView中添加页面curlanimation。

我已经创build了一个名为myWebView的UIWebView,点击button后,将在webview上显示curl效果:

-(IBAction) nextPageAnimationForWebView{ CATransition *animation = [CATransition animation]; [animation setDelegate:self]; [animation setDuration:1.0f]; animation.startProgress = 0.5; animation.endProgress = 1; [animation setTimingFunction:UIViewAnimationCurveEaseInOut]; [animation setType:@"pageCurl"]; //[animation setType:kcat]; [animation setSubtype:kCATransitionMoveIn]; [animation setRemovedOnCompletion:NO]; [animation setFillMode: @"extended"]; [animation setRemovedOnCompletion: NO]; [[myWebView layer] addAnimation:animation forKey:@"WebPageCurl"]; } 

请告诉这是否解决了你的答案。