On iPad/iBooks: XHTML code for opening/linking to another app within ebook?
My question applies to the iBook app for the iPad.
T开发者_如何转开发he goal is to be able to open another app on the iPad from within the text of an ebook.
What code should be inserted into an EPUB's XHTML file to create a direct link to another app on the iPad?
Using a URL scheme you can open other applications.
URL schemes used by the default applications are listed at https://developer.apple.com/library/content/featuredarticles/iPhoneURLScheme_Reference/Introduction/Introduction.html
The way to do this is to use a UIDocumentInteractionController. Don't believe it can be done using XHTML. Have a look at these guides: Class API Apple iPad Programming Guide
basically you will be able to open a menu with the option to launch the file (direct link if you want) in any of the apps installed that are registered to support that type of file. Good luck.
精彩评论