I am using a WKWebView and I am trying to set its magnification with the setMagnification
instance method in a class that the webView is a variable of. Whenever I try to compile I get:
No visible @interface for 'WKWebView' declares the selector 'setMagnification:centeredAt:'
despite the fact that WebKit is being imported.
-(void)zoomIn:(int) xCoord y:(int) yCoord
{
CGPoint myPoint = CGPointMake(xCoord, yCoord);
[_webView setMagnification:3 centeredAt:myPoint]
}
Edit: Just learned why this does not work is because it is OSX only, and I need it for iOS. If you have an alternative for iOS, please let me know.