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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T07:28:47+00:00 2026-05-14T07:28:47+00:00

Sorry for long winded post. I am trying to understand UIScrollView and running into

  • 0

Sorry for long winded post.

I am trying to understand UIScrollView and running into very simple problem.

  1. I am creating a scroll view
  2. I am making this view 1.5 size larger then normal size
  3. Using UIScrollView I expect to see some edge elements of view out of bounds, but should be able to pan the view therefore bringing missing elements back to the visible area.

However I am seeing that I can’t just pan/scroll view anyway I want, instead view always wants to scroll up, as soon as move away my finger from the screen (touch end event).

I am not handling any touches, etc – I just want to understand why does not scaled view stay put where I scroll it?

CGRect viewFrame = self.view.frame ;
    viewFrame.size.width *= 1.5;
    viewFrame.size.height *= 1.5;
    CGSize mySize = viewFrame.size;

    [ ((UIScrollView *) self.view) setContentSize: mySize];

    self.view.transform =   CGAffineTransformMakeScale(1.5, 1.5);

What I really trying to accomplish is something similar to Number on iPad (the same code will work on iPhone):

  • There is a view with lots of controls
    on it (order entry form)
  • User can zoom into the entire form so all elements look bigger
  • user can pan the form therefore bringing various elements into the visible area of the screen.

It seems that UIScrollView can should be able to handle zoom and pan actions (for now I am using Affine Transform to zoom in to the order entry form and iPad)

Thanks

  • 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-14T07:28:48+00:00Added an answer on May 14, 2026 at 7:28 am

    When you transform a view, you transform its internal coordinate system as well. This means that if you scale a view, the view still “thinks” it is the same size it was before the scale because its coordinate units scaled as well.

    For example, if you have an image view that has a size of (50,50) and you transform it so that it covers (200,200) on the screen, when you ask the image view its size it will report that its size is still (50,50).

    Scrollviews are unusual types of views because they have understand their absolute size relative to physical device screen in order to work properly. When you transform their coordinate system, they lose that connection to the physical device screen and can no longer function properly. This is what you are seeing.

    I haven’t done this but I’m pretty sure to create the illusion of a zoom in a scrollview, you increase the frame of the scrollview and then transform its subviews (or transform the subviews and then increase the frame of the scrollview to contain the new subview size.) That is the only way to keep the scrollview in sync with the physical device screen.

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

Sidebar

Related Questions

this post is a long one sorry for that but the problem is complex
Greetings, everyone: Firstly, sorry that my Flow description is long winded, but I think
(Sorry for long post) Ok guys, so I'm having some issues with something I'm
Sorry about this long block of code, but I think it makes sense to
i have this long mysql query, and im trying to find fetch the rows
I currently am trying to add tags around certain words in a webpage. This
Just getting started on iPhone dev today and have run through Apple's HelloWorld tutorial:
I have made the following linked list which is not printing the list .The
I'm building a module for Drupal 6 (what it does isn't wildly important; I've
I hope somebody could help me out, I have no idea how to solve

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.