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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T16:22:43+00:00 2026-06-01T16:22:43+00:00

I have a zoomable UIScrollView which contains a custom drawn view (two circles). When

  • 0

I have a zoomable UIScrollView which contains a custom drawn view (two circles). When the view is zoomed, I want to know where the centres of the circles lie, wrt the App’s window. Consider these steps:
1. The view at 1x

The view at 1X

enter image description here

The view zoomed at an arbitrary level, with the pinch focused on the first circle

enter image description here

The view zoomed at an arbitrary level, with the pinch focused on the top right corner
What I am meaning to ask is, if I were to lay another view containing a circle on top of the scroll view such that the circle in this view is concentric (need not be of the same size) with the smaller circle in the scroll view’s view, where should the centre of the new circle be located?

  • 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-06-01T16:22:44+00:00Added an answer on June 1, 2026 at 4:22 pm

    When using UIView’s coordinate conversion methods it is not relevant that you custom view is embedded in a scroll view:

    MyCustomCircleView *circleView;
    
    CGPoint centerInLocalCoordinates = circleView.centerOfACircle;
    CGPoint centerInWindowCoordinates = [circleView convertPoint:centerInLocalCoordinates
                                                          toView:nil];
    

    Maybe window coordinates are not what you are looking for. Remember that the window’s coordinate space is always in portrait orientation and with the home button at the bottom. When holding the device in landscape orientation, your coordinates are (of course) rotated.

    It might be easier to convert to a superview’s coordinates, for example your view controller’s view’s coordinate space.

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

Sidebar

Related Questions

I want my application to have a zoomable element which will allow the XAML
I have an zoomable image in the website. When the image is zoomed out
I have TextView and want to use setScaleX()/setScaleY() to make the text zoomable. But
I have a zoomable form-interface like MS Word. The form contains +70 controls (Richtextbox,
I have large zoomable bitmaps with text, that I want to resize a little
I'm working on app an where there's a view in a zoomable UIScrollView. When
I have an app which is providing a zoomable MKMapView to the user. I
I have a world view, so to speak, that consists of a large, zoomable
i have a image view which is drag able and zoom able but now
Have just started using Visual Studio Professional's built-in unit testing features, which as I

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.