2011-01-24 58 views
2

有人能告诉我是否有任何控件或框架可以将epub文件显示为iPhone应用程序吗?iPhone - 将ePub文件转换为iphone应用程序

NSString* filePath = [[NSBundle mainBundle] pathForResource:@"LittleBoPeep-ANurseryRhymePictureBook" ofType:@"epub"]; 
UIWebView* wv = [[UIWebView alloc] initWithFrame:CGRectMake(0, 0, 100, 100)]; 
[self.view addSubview:wv]; 
[wv loadRequest:[NSURLRequest requestWithURL:[NSURL fileURLWithPath:filePath]]]; 
+0

你想显示ePub文件的一个应用程序? – fabian789 2011-01-24 19:01:26

+0

是的,我想将epub文件显示为应用程序。 – Satyam 2011-01-25 05:42:48

回答

2

ePub文件基本上使用HTML文件(其中包括)来编译您将在iBooks中看到的内容。您可以解压缩ePub文件,并在UIWebView中显示HTML文件,或以任何其他方式决定如何处理它。

相关问题