Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UIWebView pagination

Tags:

iphone

ipad

I have a large html content to render in a UIWebView, I want to display the content in pages just like a book and the user uses buttons to navigate the pages. Is there any way to calculate the height of html content that fits in the webview without scrolling?

like image 427
Mohammed Osman Avatar asked Jun 02 '10 13:06

Mohammed Osman


1 Answers

If anyone comes around, in iOS7 and more you can just do :

self.webview.paginationBreakingMode = UIWebPaginationBreakingModePage;
self.webview.paginationMode = UIWebPaginationModeLeftToRight;
like image 73
Boris Charpentier Avatar answered Nov 07 '22 13:11

Boris Charpentier