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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T11:26:51+00:00 2026-05-11T11:26:51+00:00

I have a simple UIImageView with an image that is larger then the display

  • 0

I have a simple UIImageView with an image that is larger then the display (600×1400). The image starts with Fit to Aspect, so the bounds of the UIImgageView report 320×750, still larger then the display, but that’s OK. I know of a point (300, 150) relative to the original dimensions of image (600×1400) that I want to scale and position to. If I setup a basic animation to handle the position and scale (zoom, transform) via core animation, the scale happens, but I never end up at the point I want. Instead, it appears I have to calculate the point based on the scale I WILL be at once transformed.

Is there something obvious I’m missing? I’ve tried using convertPoint:toView, but it always returns the same point I just gave it.

  • 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. 2026-05-11T11:26:51+00:00Added an answer on May 11, 2026 at 11:26 am

    Yes, when you are setting the origin of a view, you are setting it in the coordinate space of its superview. The superview knows nothing of the scale of the subview, so if you need to move to a coordinate relative to the scaled size of the image, you’ll need to scale your coordinate to match. The math to do this is trivial, but you can use the CGPointApplyAffineTransform () function to take a CGAffineTransform that you may have used to scale your UIImageView via its transform property and apply it to a coordinate. (Also, remember that the coordinate 0,0 is in the upper left corner on the iPhone.) I’m not sure if setting the UIImageView to scale to fit will do the scaling via its transform property or not, but you can easily construct an affine transform to match the current scale of your view.

    However, I’d suggest that you resample your image to a smaller resolution to save memory and improve performance. 600×1400 is quite a large image to be throwing around on the iPhone. This post has some tips for how to scale UIImages. If you apply a known scale factor to your image, you can simply apply that scale factor to the X and Y components of your desired coordinate.

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

Sidebar

Related Questions

I have a simple application that shows the user an image (in a UIImageView)
I have a simple app that just displays a UIImageView. For some reason the
I am writing a simple app where I have a UIImageView that when clicked
I created simple UIScrollView that have images. Each time an image pressed i want
I have a very simple app that processes touches on a UIImageView derived view.
I have an image that I would like to display in a UITableViewCell using
I have a simple piece of code that places a background image on the
I am using UIImageView to display thumbnails of images that can then be selected
I have simple php validation form that is halfway working. If you leave the
I have simple win service, that executes few tasks periodically. How should I pass

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.