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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T03:05:43+00:00 2026-06-02T03:05:43+00:00

if i kept my progress bar out side of UIScrollView i am getting some

  • 0

if i kept my progress bar out side of UIScrollView i am getting some x & y axis (like (110,250)), if i kept that progress bar in my UIScrollView i am getting different x & y axises (like (9,100)).

my requirement is i have to put my progress bar in UIScrollView but i want to know the x & y axis of progress bar outside the UIScrollview.

i.e my progress bar origins has to calculate with respect to UIView not respect to Scrollview

give me the solution please.

  • 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-02T03:05:44+00:00Added an answer on June 2, 2026 at 3:05 am

    UIView can convert rects from one coordinate space to another so long as they have a common parent view (even the window). So, for example:

    [scrollview convertRect:subview.frame toView:someOtherView];  //scrollView converts the frame of subView.frame to the coordinate system of someOtherView
    

    There are several methods that will convert points or rects from or to another view:

    [superView convertRect:anotherView.frame fromView:anotherView.superView]; //Will give you the rect of anotherView.frame in superView coordinate system.
    

    Note that the rect can be anything (doesn’t need to be a particular view’s frame). All the method does is convert from one coordinate space to another.

    Also, to find the coordinate of a view on the screen (or the main window) you can set the “toView:” to nil:

    [superView convertRect:subView.frame toView:nil]; //will give you the coordinate of subView in the window
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Yesterday I notice that some thing kept writing with 1.48M/s bursting speed every 30s
Ideally it would be kept up-to date continuously. Some kind of CSS & Design
I kept getting errors in my log file that messageconfig file not found. It
I see that tax information is kept at order level but I cannot see
I was writing a script that kept giving me errors. After tracking it down
I can find ample evidence that MongoDBs are always kept in the order given
I want to store all of the data that is kept in encoding_symbols_tab [0]
Kept getting DATABASE_URL does not match any of your databases ! Could not resolve
I kept getting this error when I use delayed_job + Rails 3.1 + ActionMailer
Play's flash is a temporary storage mechanism that is kept for the duration of

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.