我正在尝试将章节中的 epub 文件加载到 webview 中。我想知道屏幕的宽度。
例如:
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
我的代码是:
int totalWidth = [[webView stringByEvaluatingJavaScriptFromString:@"document.documentElement.scrollWidth"] intValue];