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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T15:37:55+00:00 2026-05-20T15:37:55+00:00

in an iPad application, I am displaying a modal view controller (through presentModalViewController )

  • 0

in an iPad application, I am displaying a modal view controller (through presentModalViewController) in a FormSheet style (so it’s about 540 pixels wide and high), the root view controller displays fine (its frame’s size is set to roughly (540, 540) and my code takes care of laying out the content properly).

However, when a push a view controller, its frame’s size always has (768, 1024) which is wrong. I tried to set its frame explicitly like this:

DetailViewController* detailController = [[DetailViewController alloc] init];
detailController.view.frame = self.view.frame;          
[self.navigationController pushViewController:detailController animated:YES];

Any ideas why it doesn’t set the size properly?

  • 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-20T15:37:55+00:00Added an answer on May 20, 2026 at 3:37 pm

    well, layoutSubviews should be used if the actual frame of the view at runtime is needed. I ended up using that to lay the subviews inside the controller’s view. (although I had to create a custom UIView subclass for controller’s view)

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

Sidebar

Related Questions

I'm displaying a view with multiple full-sized (768x1024) images on iPad web application. Images
The root level view controller in my iPad application is a UISplitViewController. Thus, it
I am working on an iPad application, displaying TableView listing according to returned data
Solved Hey all, I'm currently working on a Split-View Based Application for iPad. I
I have an iPad application in which I am displaying an input form as
I am developing an iPad application with view-based template in landscape mode as it
I'm displaying locally stored pdf in my iPad application. Here's the code: NSString *path
My ipad application has a custom look. It uses text labels extensively for displaying
My application icon's work fine when displaying on iPad and iPhone, however after I
In my IPad Application i am using TextView only for Text Displaying.As i need

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.