fedefrappi/AePubReader — Issue #7: pagination issue 
Author: dineshprasanna
Created: 2012-02-22 14:30:00+00:00
State: open

i am trying to load an epub file in chapter wise into the webview. I want to know the width of the screen.

For Example:

if the content have one and half page text means it returns the width to be as 768
but
if the content have two full page text means it returns the width to be as 1536

my code is:

int totalWidth = [[webView stringByEvaluatingJavaScriptFromString:@"document.documentElement.scrollWidth"] intValue];

please help me.....