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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T13:56:08+00:00 2026-05-21T13:56:08+00:00

I do not know how to explain my question properly, but if anyone understand

  • 0

I do not know how to explain my question properly, but if anyone understand it is much appreciated else this question can be deleted.

I am making an universal application I wonder: The code I write in loadView I write positions of components specified in a iPhone points (320, 480). And from the documentation below it says that autoresizing is a response to their superview being moved or resized. So my question is how does the code/views know to autoresize when runned on a iPad? Because, are the superview (which is self.view) really resized?

Code you write outside of loadView and attaches to self.view and with iPhone positions (320, 480) are not automatically resized even though you use autoresizing masks.

I know this is for Mac OSX but: (Quote from Mac OSX Documentation)

Autoresizing of Subviews NSView
provides a mechanism for automatically
moving and resizing subviews in
response to their superview being
moved or resized. In many cases simply
configuring the autoresizing mask for
a view provides the appropriate
behavior for an application.
Autoresizing is on by default for
views created programmatically, but
you can turn it off using the
setAutoresizesSubviews: method.

  • 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-21T13:56:08+00:00Added an answer on May 21, 2026 at 1:56 pm

    When your UIViewController is presented modally or is pushed onto a UINavigationController, UITabBarController, or the like, its root view will be resized to fit the appropriate content area. Any subviews are resized according to their autoresizing masks.

    Your code “outside of loadView” actually will be resized automatically, but (depending on exactly when this code is executed) the root view may have already been resized: it’s the difference between adding a 320-px width view into a 320-px superview and then resizing to 1024 px versus adding a 320-px width view into a superview that is already 1024 px.

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

Sidebar

Related Questions

I faced a little trouble - I do not know if I can define
I was asked a question in C last night and I did not know
I have seen 3d surface plots of data before but i do not know
This just won't work. The problem is that I do not know enough to
One may not always know the Type of an object at compile-time, but may
As far as I know (not much I'll admit), the currently popular programming paradigms
I've read a few posts on this, but there's still one thing that's not
Okay the question title may not have made sense... mostly because I don't know
This is probably simple but I do not seem to get it to work.
I'll to explain this right: I'm in an environment where I can't use python

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.