Zooming in and out in WebView Cocoa

后端 未结 1 1191
谎友^
谎友^ 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)
提交回复
热议问题