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

后端 未结 5 658
温柔的废话
温柔的废话 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 01:53

    It doesn't look like there's a documented way to do what you want. An alternative that only half solves your problem is using a UIScrollView. You could put UIImageViews inside your UIScrollView and then scroll to any position in the scroll view. This does not allow you to programmatically zoom the view though. If it's something you think should be added to the SDK file a radar: http://bugreport.apple.com/

提交回复
热议问题