現在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