Is it possible to embed an eBook created with iBooks Author inside an app?

巧了我就是萌 提交于 2019-12-07 06:17:09

问题


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?


回答1:


You can export from iBooks author as PDF and then create a wrapper app that will display that PDF inside an app, but the experience will be suboptimal.




回答2:


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.

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];


来源:https://stackoverflow.com/questions/9309670/is-it-possible-to-embed-an-ebook-created-with-ibooks-author-inside-an-app

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!