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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T14:25:10+00:00 2026-06-04T14:25:10+00:00

On iOS, if we change a view’s frame , we change its bounds ,

  • 0

On iOS, if we change a view’s frame, we change its bounds, and if we change its bounds, we change its frame.

But we can change the internal coordinate system of a view by:

CGRect b = v.bounds;    // v is the UIView object
b.origin.x = 10000;
b.origin.y = 10000;
v.bounds = b;

and now, the top left point of the view is a coordinate of (10000, 10000). Is this also possible by merely changing frame and center but not bounds?

  • 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-04T14:25:11+00:00Added an answer on June 4, 2026 at 2:25 pm

    On iOS, if we change a view’s frame, we change its bounds, and if we change its bounds, we change its frame.

    That’s half true. Only the sizes of those two rects are bound together. From the docs:

    The size portion of the frame and bounds rectangles are coupled together so that changing the size of either rectangle updates the size of both.

    That doesn’t mention the origins. So your example will modify the internal coordinate system’s origin without changing its position in the superview’s coordinate system. You can’t achieve that behavior via the frame or center properties; they only affect the the view’s position in its superview’s coordinate system.

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

Sidebar

Related Questions

I run this code normally in iOS 4.3. But when I change the project
Possible Duplicate: Change icon on of an App in iOS 4 in run-time Is
My iOS app has a need to uniquely identify each device so it can
In iOS, how can I call an Objective-C method from Javascript in a UIWebView
In iOS apps, we have to register nib files with our table view before
Since iOS 5.1 was released, the default for showing the Master view controller in
(iOS) I have a view that contains multiple textviews under static headings (see image
I have a view on iOS with a bunch of UI widgets like sliders
How can I programmatically scroll a UIWebView in Objective-C (iOS)? The only solution I
I just want to change the title in my iPad split view application 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.