Zooming in and out in WebView Cocoa

后端 未结 1 1173
谎友^
谎友^ 2021-01-06 19:35

Below is my code:

[[[[webView mainFrame] frameView] documentView] scaleUnitSquareToSize:NSMakeSize(1.5,1.5)]; 
[[[[webView mainFrame] frameView] documentView         


        
相关标签:
1条回答
  • 2021-01-06 19:55

    Why do you need to access the documentView?

    [[[webView mainFrame] frameView] scaleUnitSquareToSize:NSMakeSize(1.5,1.5)]; 
    

    works as well.

    0 讨论(0)
提交回复
热议问题