I am doing ebook reader app like as iBooks. I have succesfully read a .epub file. But my problem is:-
I have to add Font size increase and decrease and font changing fun
Finally I got answer .It is very simple . In ios 7 you don't need to write javascript for pagination or any logic .
Just set UIWebview Property . Here is my code.
self.webView.paginationMode = UIWebPaginationModeLeftToRight;
self.webView.paginationBreakingMode = UIWebPaginationBreakingModePage;
self.webView.scrollView.delegate = self;
self.webView.scrollView.pagingEnabled = YES;
self.webView.scrollView.alwaysBounceHorizontal = YES;
self.webView.scrollView.alwaysBounceVertical = NO;
self.webView.scrollView.bounces = YES;
Here is sample code a : https://github.com/kalpesh22m/Epub-Reader-With-Pegination