4

I am creating ebook application but it has to support from ios5 onwards. I want to do it quickly and efficiently too. I am planning to use UIPageviewController, but for ios5 it supports only curl animation, and i need to support scroll animation as well for page movements, which we get on ios6. So, can i do this with ios5 using pageview controller, the contents which I am showing are images. Ideally i like to use page view controller, as many of things it handle itself, such as page flipping, page movement when tapping on page end area, and its curl animation is better than other available options. Please help, any suggestions are welcome.

4

3 回答 3

1

如果还有人遇到此问题,请查看R4PageViewController。它支持 iOS 5、6 和 7,并具有类似 iOS 7 的滚动效果(可以禁用)。

于 2013-09-28T15:02:46.773 回答
0

如果您想要一个快速的解决方案,请使用以下代码段来检测当前的 iOS 版本并相应地使用过渡样式:

#define SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(v)  ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] != NSOrderedAscending)

if(SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(@"6.0")){
  //UIPageViewControllerTransitionStyleScroll
}else{
  //UIPageViewControllerTransitionStylePageCurl
}
于 2012-10-17T10:39:58.020 回答
0

我遇到了类似的问题并找到了 RAPageViewController。我用它重新实现了 Apple 的 PhotoScroller 示例,只做了很少的改动。我的仓库是RAPageScroller

于 2013-01-15T14:05:24.820 回答