是否可以在应用程序中嵌入由iBooks作者创建的电子书? [英] Is it possible to embed an eBook created with iBooks Author inside an app?

查看:164
本文介绍了是否可以在应用程序中嵌入由iBooks作者创建的电子书?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在应用程式中嵌入由iBooks作者制作的电子书。是否有人知道是否可能?

I would like to embed an e-book created with iBooks Author inside an app. Does anybody know if it's possible?

如果没有,是否可以在打开电子书的应用程序中添加链接?

If not, is it possible to add a "link" in my app that opens the e-book?

推荐答案

有一个名为EPUB的计算机工具pdf将文件转换为PDF。一旦这样做,确保你可以去XCODE。

There is a computer tool called EPUB to pdf to convert the files into PDF. Once that is done im sure you can go on XCODE.

加载和显示本地pdf文件的最简单的方法是使用UIWebview像这样:

The easiest way to load and display a local pdf file is to use a UIWebview like that:

NSString *path = [[NSBundle mainBundle] pathForResource:@"document" ofType:@"pdf"];
NSURL *targetURL = [NSURL fileURLWithPath:path];
NSURLRequest *request = [NSURLRequest requestWithURL:targetURL];
[webView loadRequest:request];

这篇关于是否可以在应用程序中嵌入由iBooks作者创建的电子书?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆