开发者

iPhone - Convert ePub file to iphone app

Can some one tell me whether any control or framework is there that will s开发者_如何学Chow epub files as an iphone app?

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


ePub files basically use HTML files (among others) to compile what you would see in iBooks. You can unzip the ePub file and display the HTML files in a UIWebView, or any other way you decide to go about it.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜