Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/xcode/7.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios UIWebview中UIScrollView上的页面卷曲_Ios_Xcode_Ibooks_Page Curl - Fatal编程技术网

Ios UIWebview中UIScrollView上的页面卷曲

Ios UIWebview中UIScrollView上的页面卷曲,ios,xcode,ibooks,page-curl,Ios,Xcode,Ibooks,Page Curl,我对iBook PageCurl感到惊讶,我想我可以将此功能添加到我的books应用程序中,下面是关于如何构建我的项目的信息, 项目分为两个级别,顶层是UIWebview,为每个页面加载本地web内容,在UIWebview中有内置的UIScrollview,其行为类似于打开分页功能的普通scrollview,并通过捕获代理ScrollViewDiEndDeceling,根据旋转左侧或右侧加载新页面: 我想知道如何将PageCurl动画添加到scrollview的构建中,或者如何更改代码以支持Pa

我对iBook PageCurl感到惊讶,我想我可以将此功能添加到我的books应用程序中,下面是关于如何构建我的项目的信息, 项目分为两个级别,顶层是UIWebview,为每个页面加载本地web内容,在UIWebview中有内置的UIScrollview,其行为类似于打开分页功能的普通scrollview,并通过捕获代理ScrollViewDiEndDeceling,根据旋转左侧或右侧加载新页面:

我想知道如何将PageCurl动画添加到scrollview的构建中,或者如何更改代码以支持PageCurl动画,我在互联网上发现了很多展示PageCurl功能的开源项目,但都使用了PageViewController,这意味着如果我应该使用它,就意味着在视图控制器内部分配webview,这意味着大量内存使用和更少的用户体验质量

我想知道如何将UIScrollView分页更改为PageCurl功能

下面是webview和scrollview的分配代码

webContent_ = [[UIWebViewEx alloc] initWithFrame:self.bounds];
[webContent_ setAutoresizingMask:UIViewAutoresizingFlexibleHeight | UIViewAutoresizingFlexibleWidth];
[webContent_ setBackgroundColor:[UIColor whiteColor]];
[webContent_ setDelegate:self];
[webContent_ setContextMenuDelegate:self];
[webContent_ setMarkupDelegate:self];
[webContent_ setDataDetectorTypes:UIDataDetectorTypeNone];
[webContent_ setClipsToBounds:NO];
[self addSubview:webContent_];

webScroller_ = [webContent_.subviews objectAtIndex:0];
[webScroller_ setPagingEnabled:YES];
[webScroller_ setBounces:NO];
[webScroller_ setDelegate:self];
[webScroller_ setBackgroundColor:[UIColor whiteColor]];
[webScroller_ setShowsVerticalScrollIndicator:NO];
[webScroller_ setShowsHorizontalScrollIndicator:NO];
[webScroller_ setClipsToBounds:NO];

感谢您的帮助

看一看,也许这是她在第二个链接中提到的github链接对不起,我不想要动画我想要像pagecurl一样滚动页面,而不是动画页面,我想要用户移动页面,就像他在读iBookuser784625这样的书一样。嗨,我还想要实现页面卷曲动画。你有什么解决办法吗。先发制人