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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T23:03:28+00:00 2026-05-22T23:03:28+00:00

Landscape only app. On my main window xib, I’ve got a UIView. I’m loading

  • 0

Landscape only app. On my main window xib, I’ve got a UIView. I’m loading a UIScrollview programatically into that UIView which works just fine. On that scrollview, I’ve got a button that brings up a “detail” screen (a separate view controller), via a presentModalViewController call:

    LearnITViewController *learnit = [[LearnITViewController alloc] initWithNibName:@"LearnITViewController" bundle:nil];
self.learnitView = learnit;
[self presentModalViewController:learnit animated:YES];    
[learnit release];

The action’s being called but the modal view doesn’t take up the whole screen when the scrollview is a subview. Instead, it’s popping into the parent scrollview and flipping the orientation, etc. Not the desired behavior.

Any guidance on how to make the modal view full screen when the call is from scrollview which is a subview of a container UIView on the main xib?

  • 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-22T23:03:29+00:00Added an answer on May 22, 2026 at 11:03 pm

    Thanks for all the comments. Found a tip somewhere on overriding presentModalViewController and bubbling up in a loop until the main controller’s reached (in my case, HomeViewController). Worked like a champ.

    - (void) presentModalViewController:(UIViewController *)screen animated:(BOOL)animated {
        UIResponder *responder = self;
        while (responder && ![responder isKindOfClass:[HomeViewController class]]) {
            responder = [responder nextResponder];
        }
        [(UIViewController *)responder presentModalViewController:screen animated:YES];
    }
    

    I’m overriding in the .m file of the UIScrollview that contains the button that makes the call.

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

Sidebar

Related Questions

I've got an iPad app that I absolutely need to have in just landscape,
I have main menu in my app supporting only landscape mode. I implement landscape
My app only supports the landscape right orientation. I'm trying to transition into a
I have an iPhone app which runs only in landscape orientation. There is is
strong textI have an iPad app which only allows landscape orientation, and launches in
I am trying to make this landscape only iphone app. I only use this
My app uses a landscape only view and requires the user to answer a
My ipad app only runs in landscape orientation. But when I test on an
Currently zxing library supports only on landscape mode.For my app i need to use
My android app works on landscape mode. I have a listview that contains some

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.