Frage

I have to develop an ebook reader app for iOS, which will show 2 pages of ebook at a time in the window. what approach should I take for showing the 2 pages at a time IN CONTINUATION (the web view has to be continuous) ?

War es hilfreich?

Lösung

the solution was to modify the css property which fixes the size of the content displayed in UIWebView, then reduce it by half

NSString *insertRule1 = [NSString stringWithFormat:@"addCSSRule('html', 'padding: 0px; height: %fpx; -webkit-column-gap: 0px; -webkit-column-width: %fpx;')", webView.frame.size.height, webView.frame.size.width/2];
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top