翻页效果的实现采用的是AFKPageFlipper
使用时先导入AFKPageFlipper
http://download.youkuaiyun.com/detail/rylt2011/5586259
然后导入QuartzCore.framework
遵循AFKPageFlipperDataSource协议
在viewDidLoad中
self.view.autoresizesSubviews = YES;
self.view.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
flipper = [[[AFKPageFlipper alloc] initWithFrame:self.view.bounds] autorelease];
flipper.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
flipper.dataSource = self;
flipper.backgroundColor = [UIColor greenColor];
[self.view addSubview:flipper]

该博客介绍了如何在iOS应用中实现逼真的翻页效果,采用AFKPageFlipper库进行实现,并提供了导入和使用的详细步骤。同时,文章还讲解了利用PDFRendererView进行PDF文档读取的方法,但指出该库对某些PDF文件支持不完善。
最低0.47元/天 解锁文章

被折叠的 条评论
为什么被折叠?



