iPhone UIWebView - How do you set the zoom level and position?

后端 未结 5 565
温柔的废话
温柔的废话 2021-01-12 01:33

I\'m displaying a series of tiled images in a UIWebView and would like to programmatically set the UIWebview\'s initial zoom and view location.

How does one go abo

5条回答
  •  礼貌的吻别
    2021-01-12 02:00

    Set attribute scalesPageToFit of UIWebView to YES. Then the webpage is scaled to fit and the user can zoom in and zoom out.

提交回复
热议问题