Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 1    Views: 116

NCbuzz
Code is Art
Profile
Posts: 575
Reg: Sep 11, 2013
Lillington, NC
11,100
09/13/14 02:51 PM (9 years ago)

Zooming-Panning WebView Images with Ultimate Screen Creator (USC) iOS

UPDATED... Running latest versions of OS 10.9, XCode 5.1.1 and Plugin v1.4 (Downloaded latest plugin. docs say 1.4 code comment says 1.3) Goal: Pan and zoom WebView images (similar to ability for map view) (Set up image and webview items approx 1/4 of screen pointing to a fullscreen image) Observed Using Image Item: No Pan or Zoom. (only behavior is to size/stretch image to item width and height size. Using a Web View (pointing to the same image URL), with Attempt to fit content set to No. The WebView originally would only scroll vertically, and no ability to zoom. == UPDATE ===== Editing the code "tmpWeb.scalePagesToFit = NO;" // enables horizontal scrolling. However ability to pan is inconsistent. Sometimes only able to scroll left-right or up-down. Does not pan. Note: WebView (with Attempt to fit content) does not display image, and displays text. Same as editing code to "attemptZoom = YES" ==================== Chris- How would we modify the webView code to support zoom and pan of image in: CR_ultimateScreenCreator.m ? ==================== Thanks
 
NCbuzz
Code is Art
Profile
Posts: 575
Reg: Sep 11, 2013
Lillington, NC
11,100
like
09/14/14 01:18 PM (9 years ago)
Additional Image info for testing on 5s v7.1.2 Original Image being used is 320x568 The webview is 160x200 (So initially seeing the top left of image at normal scale.) Image is being loaded with "URL to load" similar to: http://www.mydomain.com/tests/background/Project_320x568.jpg =========== Using http://google.com same scrolling (no pan behavior) and no zoom. Maybe running into limitations of both current image and webview.... would this need a new item like an imageView?
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.