现在iBooks支持PDF。我的应用可以访问许多PDF文件。是否可以从我的应用程序发送PDF到iBooks(或其他PDF阅读器,如GoodReader和iAnnotate PDF)?发送PDF到iBooks
6
A
回答
2
要回答我的问题 - 是的,你可以使用这个PDF文件发送到应用程序支持自定义URL方案为:GOODREADER
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:url]];
URL方案:
[email protected]"ghttp://www.mysite.com/myfile.pdf";
iAnnotate PDF是:
[email protected]"pdfs://www.mysite.com/myfile.pdf";
有谁知道iBooks的自定义URL方案?
11
//get path to file you want to open
NSString *fileToOpen = [[NSBundle mainBundle] pathForResource:@"readme" ofType:@"pdf"];
//create NSURL to that path
NSURL *url = [NSURL fileURLWithPath:fileToOpen];
//use the UIDocInteractionController API to get list of devices that support the file type
docController = [UIDocumentInteractionController interactionControllerWithURL:url];
[docController retain];
//present a drop down list of the apps that support the file type, click an item in the list will open that app while passing in the file.
BOOL isValid = [docController presentOpenInMenuFromRect:CGRectZero inView:self.view animated:YES];
0
使用此链接找到URL方案http://schemes.zwapp.com/
,并使用[[UIApplication sharedApplication] openURL:url];
在应用程序启动。
感谢
相关问题
- 1. 从应用内发送捆绑PDF到iBooks
- 2. 将PDF文件复制到iBooks库
- 3. PDF阅读器喜欢iBooks
- 4. iPhone - 在iBooks中查看PDF
- 5. 发送输出到PDF php
- 6. 以PDF的形式将PDF加载到iBooks中
- 7. 将HTML表格发送到PDF发送到电子邮件
- 8. Objective C:在iBooks上打开PDF文件
- 9. UIDocumentInteractionController在iBooks中打开pdf崩溃
- 10. IOS中的iBooks打开PDF从DocumentsDirectory
- 11. iPhone/iPad的绘制pdf像iBooks?
- 12. CGPDF函数与iBooks PDF渲染
- 13. Asp.Net发送PDF到浏览器
- 14. 用Delphi发送数据到PDF
- 15. 使用xCode7将PDF保存到iBooks问题
- 16. 取从iBooks的PDF到我的应用程序
- 17. iOS-PDF在UIWebView中加载,然后使用UIDocumentInteractionController保存到iBooks
- 18. 发送一个签名捕获到PDF与PDF(数据网址)
- 19. Magento的发送PDF附件
- 20. ASP.NET - 发送PDF用户
- 21. 解析错误发送错误发送PDF
- 22. 是否可以从iBooks将PDF加载到我的iOS应用程序中?
- 23. 通过UIDocumentInteractionController将pdf文件添加到iBooks但不打开文件
- 24. iTextSharp生成PDF:如何将pdf发送到客户端并添加提示?
- 25. 如何使用Appcelerator在iOS上使用iBooks打开PDF?
- 26. 为iBooks等PDF文件创建高效缩略图
- 27. 如何在其他应用程序如ibooks上打开pdf
- 28. 通过ActiveMQ发送和接收PDF
- 29. 发送PDF为字节[]/JSON问题
- 30. Telegram Bot通过Node.js发送PDF文件
ITMS书籍和ITMS-bookss – WrightsCS 2010-08-24 01:50:24