RoboReader——方便快速的制作一个阅读pdf文件的view controller
查看次数:4236
下载次数:410
上传时间:2013-10-31
大小:2 KB
使用RoboReader这个框架,可以简单方便的制作一个阅读PDF文件的view controller。
使用方法
1.将RoboReader添加到工程当中,然后导入RoboViewController.h文件。
2.给你希望显示的PDF文件创建一个RoboDocument实例。
NSString *path = [[NSBundle mainBundle] PathForResource:@"YourPdf" withExtension:@"pdf"];
RoboDocument *document = [[RoboDocument alloc] initWithFilePath:url password:@"YourPdfPassword_or_nil"]
3.创建一个RoboViewController实例,然后把它作为一个子view controller来显示。
RoboViewController *r = [[RoboViewController alloc] initWithDocument:document];
收藏