Ian
Ian

Reputation: 1

On iPad/iBooks: XHTML code for opening/linking to another app within ebook?

My question applies to the iBook app for the iPad.

The 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?

Upvotes: 0

Views: 1502

Answers (2)

Sharjeel Aziz
Sharjeel Aziz

Reputation: 8535

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

Upvotes: 3

Jesse Naugher
Jesse Naugher

Reputation: 9810

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.

Upvotes: 0

Related Questions