【发布时间】:2013-08-12 10:25:29
【问题描述】:
我想使用 UIPageViewController 来实现电子书阅读器。
我正在唱的小样是AePubReader。
如何使用UIPsgeViewController实现真正的翻页效果。
如何在翻页时添加设置页面索引......
这里下一页和上一页方法:
- (void) gotoNextPage {
if(!paginating){
if(currentPageInSpineIndex+1<pagesInCurrentSpineCount){
[self gotoPageInCurrentSpine:++currentPageInSpineIndex];
} else {
[self gotoNextSpine];
}
}
}
- (void) gotoPrevPage {
if (!paginating) {
if(currentPageInSpineIndex-1>=0){
[self gotoPageInCurrentSpine:--currentPageInSpineIndex];
} else {
if(currentSpineIndex!=0){
int targetPage = [[loadedEpub.spineArray objectAtIndex:(currentSpineIndex-1)] pageCount];
[self loadSpine:--currentSpineIndex atPageIndex:targetPage-1];
}
}
}
}
谢谢....
【问题讨论】:
-
嗨,丹尼,您的问题得到答复了吗?或者您是如何解决的。我有类似的开发,喜欢使用 UIPageViewController 来显示 epub 书籍
标签: iphone ios epub uipageviewcontroller