开发者

Paginate the uiwebview in iphone

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.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜