Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1023225
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T11:35:03+00:00 2026-05-16T11:35:03+00:00

Setup: Tab Bar App First View is a ScrollView which has an ImageView as

  • 0

Setup:

Tab Bar App

First View is a ScrollView which has an ImageView as its subview, loaded from a file.

All of the above configured in IB.

Application properly launches and I can scroll around the image and all is right with the world.

I have it scaling in and out with pinch controls no problem as well.

Now however I am trying to utilize setZoomScale to 1.0 when the user double taps… And it does indeed set the ZoomScale to 1.0..

The problem is however, that it moves the view to position 0,0 when it does it… completely ignoring the contentOffset values… Even when my next call after the setZoomScale is a call to set the contentOffset to soemthing else, nothing happens…

So, I’m a bit confused.. I’m not sure why the setZoomScale refocuses the view to 0,0 and worse yet, I don’t understand why the view would not move to the contentOffset that the next line of code says it should even if it does reset it to 0,0.

Any ideas or suggestions? I know I could use zoomToRect, but I would really like to know what is going on here.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T11:35:03+00:00Added an answer on May 16, 2026 at 11:35 am

    Zoom To Rect does the same thing.. this is getting unbelievably frustrating… any programmatic change to the zoomScale in the UIScrollView just takes it to coordinate 0,0…

    In Zoom To Rect, the rectangle being passed in is exactly what I want but it just zooms and goes to coordinates 0,0.. does anyone have any ideas on this? This makes no sense to me at all.

    UPDATE:

    Ok, I have figured out the culprit, but not the solution… the zoomToScale is triggering the contentMode of the subView, which in this case I have set to TOP LEFT… So every zoomToScale call or setZoomScale, etc.. is triggering the image to be redrawn on the screen at 0,0.

    Now user interaction pinching and zooming and scrolling are not triggering this.

    Now I just have to figure out a way to fix it.. I don’t want the view to trigger the UIViewContentMode setting when I ask the scrollview to zoom, but I have no idea how to halt this.. changing the setting to redraw winds up with blank screen, and the other values are inappropriate as well, since I don’t want the image moved.. I just want it zoomed.

    Any ideas?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using GCD for background downloading in my Tab Bar app. First step is
I have an app that has a tab bar, each tab contains a separate
I have a tab delimited file on a shared path. I've setup that flat
Here's the setup: I have a tab bar controller with two tabs. There is
I have a Tab Bar app set up where the user selects their default
My app has a main screen that the user always starts at, and from
Description I have a Tab Bar Controller with a navigation controller tab. The first
Here is my app setup. TabBar App with three tab items, tabs 2 and
I have a tab bar controller with five buttons. That controller has a tab
I am having an issue: I have a tab-bar based app. In MainWindow.xib for

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.