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 584291
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T14:52:57+00:00 2026-05-13T14:52:57+00:00

I think I have found a bug in UIScrollView, but I want to check

  • 0

I think I have found a bug in UIScrollView, but I want to check if other people are observing the same thing and if it is expected behaviour.

I’ve got a UIScrollView and am trying to set what it is looking at using zoomToRect. That works fine. If I then drag the view so it’s looking elsewhere and then trigger the zoomToRect with the same values it does nothing. The zoomToRect command only does something if the zoomScale needs to be adjusted, if a pan is all that is needed the view just sits still. Since a user could pinch to zoom in or out I was just hoping to use zoomToRect and not have to double check the zoomLevels would be different.

has anyone else experienced this? Should it happen that way or is it a bug?

***Adding code as requested

First call to zoomToRect

[myScrollView zoomToRect:zoomToRect animated:YES];

View aimed correctly at point in the UIScrollView that I wanted it to be

Now let the user drag on the screen and move the point the UIScrollView is looking at. No zooming occurs, only panning.

Now call zoomToRect again, with the same rect

[myScrollView zoomToRect:zoomToRect animated:YES];

Nothing happens.

  • 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-13T14:52:57+00:00Added an answer on May 13, 2026 at 2:52 pm

    Apple have said this is a known bug with UIScrollView and will be fixed in a future release.

    https://devforums.apple.com/message/158712#158712

    In the mean time I have worked around this as follows

    float zoomBefore = myScrollView.zoomScale;
    [myScrollView zoomToRect:zoomToRect animated:YES];
    float zoomAfter = myScrollView.zoomScale;
    if (zoomBefore == zoomAfter)
    {
        [myScrollView setContentOffset:imageCoords animated:YES];
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I found this on http://old.nabble.com/insert-statement-td21157498.html I want to do the same thing .I have
I think I may have found a bug in WebMatrix's PageData, but I am
I think I found a bug in UIKit, but first I want to be
I think I may have found a bug with Google Chrome (16.0.912.75 m, the
I think I may have found a bug in PHP's crypt() function under Windows.
I think I've just found a really strange bug... But it can just be
I think I have found a bug when setting or getting the Me.Top property
I think I may have found an interesting bug with AX 2009, and I'm
I think I've found a bug in Cake's FormHelper class, but maybe I'm just
I think I found a bug in webkit: FF doesn't have a problem reporting

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.