开发者

iPhone - Convert ePub file to iphone app

开发者 https://www.devze.com 2023-02-06 05:26 出处:网络
Can some one tell me whether any control or framework is there that will s开发者_如何学Chow epub files as an 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

精彩评论

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