In our production app, we can't seem to be able to change the text size of a UIWebView on iOS 10 on iPad.
We're using this method to change the text size:
[self.webview stringByEvaluatingJavaScriptFromString:[NSString stringWithFormat:@"document.getElementsByTagName('body')[0].style.webkitTextSizeAdjust = '%d%%'", size]];
Running our sample project, always running on iPad simulator with iOS 10:
(always running in iPad simulator, but switching Deployment device setting)
-On iOS9, built for iPhone device: works
-On iOS9, built for iPad device: works
-On iOS10, built for iPhone device: works
-On iOS10, built for iPad device: DOESN'T WORK, no resizing, no errors or warnings
We are aware of WKWebView, and there are similar issues, using similar methods, except that it doesn't work for both iPad and iPhone on iOS10, but works on iOS9.
Using Xcode 8 beta 2, on iPad simulator with iOS 10 beta 2 (also tried with iOS 10 beta 1).
(Update: still broken in iOS10 GM and iOS10.1b1)
Anyone have any ideas or alternatives?
Thanks!