how to implement an ebook reader, which shows 2 pages of ebook on the window

StackOverflow https://stackoverflow.com/questions/22404045

  •  14-06-2023
  •  | 
  •  

Вопрос

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) ?

Это было полезно?

Решение

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];
Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top