Page flipping sample code

ε祈祈猫儿з 提交于 2019-12-21 02:04:26

问题


Is there any sample code available for flipping a page like stanza and iBooks?

Any help would be appreciated.


回答1:


Here's a couple of resources to get you started with UIScrollView paging:

  • http://developer.apple.com/iphone/library/samplecode/PageControl/Introduction/Intro.html
  • http://cocoawithlove.com/2009/01/multiple-virtual-pages-in-uiscrollview.html

If you mean iBooks' page curl animations on the other hand, Apple uses private APIs there, but developers have been trying to imitate them:

  • http://blog.steventroughtonsmith.com/2010/02/apples-ibooks-dynamic-page-curl.html
  • http://oleb.net/blog/2010/06/app-store-safe-page-curl-animations/
  • http://github.com/brow/leaves


来源:https://stackoverflow.com/questions/3253432/page-flipping-sample-code

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!