I'm now 开发者_如何学运维implementing an epub reader in iphone. I'm using uiwebview to display the files. It works fine but I cannot paginate a html file in uiwebview.
I use the following code to paginate the uiwebview:for(id subviedw in myWebView.subviews)
if ([[subview class] isSubclassOfClass:[UIScrollView class]]) {
((UIScrollView *)subview).pagingEnabled = YES;
break;
}
}
It can paginate the uiwebview but it paginates vertically. How can I paginate the html file horizontally? (using javascript?)
As far as I understand, it is possible to use CSS3 columns http://www.w3.org/TR/css3-multicol/ to break long text into pages on the iPhone.
精彩评论