Fix Issue #26: Fails to compile with cordova-ios 4.0.0

Per @shazron, use `self.commandDelegate evalJs`.
This commit is contained in:
Michael Jordan
2015-12-16 15:29:21 -05:00
parent 188d5c583c
commit 71640de527
+1 -1
View File
@@ -180,7 +180,7 @@
mFontScale = zoom/100;
if (iOS7Delta) {
NSString *jsString = [[NSString alloc] initWithFormat:@"document.getElementsByTagName('body')[0].style.webkitTextSizeAdjust= '%f%%'", zoom];
[[self webView] stringByEvaluatingJavaScriptFromString:jsString];
[self.commandDelegate evalJs:jsString];
}
}