iOS Question Zoomable ImageView

Discussion in 'iOS Questions' started by CaptKronos, Feb 19, 2019.

Tags:
  1. CaptKronos

    CaptKronos Active Member Licensed User

    I'm looking for an imageview that provides the usual pinch to zoom and panning capabilities. I came across Narek Adonts' libZOOM library, discussed here: https://www.b4x.com/android/forum/threads/zoomable-imageview.55185/ but I am having the same issue that Graham Bancroft reported which is, unfortunately, the last post of that thread and hence I don't think it has been resolved. The issue is that once the image has been zoomed, it is no longer completely displayed. (Graham's post includes an image showing the problem.) This is such a noticeable issue that I assume it must have been introduced by some change to B4i or iOS between when Narek wrote the library (2005) and Graham reported the issue (2007).

    Does anyone know how to resolve the issue or can point me at an alternative approach to implementing a zoomable imageview?
     
  2. CaptKronos

    CaptKronos Active Member Licensed User

    I seem to have discovered how to fix the problem. The scrollview's ContentWidth and ContentHeight need to be set to the dimensions of the image being viewed multiplied by the maximum zoom.
     
  3. Erel

    Erel Administrator Staff Member Licensed User

    You can also use WebView for this.
     
  4. CaptKronos

    CaptKronos Active Member Licensed User

    Thanks.
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice