开发者

Paginate the uiwebview in iphone

开发者 https://www.devze.com 2023-03-19 08:38 出处:网络
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'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

精彩评论

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