从我的应用打开 iBooks [英] open iBooks from my app
本文介绍了从我的应用打开 iBooks的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的应用中有一些 PDF.我想提供一个选项来在可能安装在设备上的其他第三方电子阅读器应用程序中打开这些 PDF,例如 Stanza 和 iBooks.Dropbox 应用程序已成功实现此功能,但我找不到任何有关如何检测设备上可用的其他电子阅读器或这些应用程序的自定义 url 方案的信息.任何帮助将不胜感激.在此先感谢各位.
I have some PDF in my app. I want to provide an option to open those PDF in other third party e-readers app that might be installed on the device, like Stanza and iBooks. Dropbox application has successfully implemented this feature and I can't find any information on how to detect what other e-readers are available on the device or what the custom url scheme is for those apps. Any help would be greatly appreciated. thanks in advance guys.
推荐答案
iBooks
NSString *stringURL = @"itms-books:";
NSURL *url = [NSURL URLWithString:stringURL];
[[UIApplication sharedApplication] openURL:url];
NSString *stringURL = @"itms-bookss:";
NSURL *url = [NSURL URLWithString:stringURL];
[[UIApplication sharedApplication] openURL:url];
这篇关于从我的应用打开 iBooks的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文