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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T16:01:14+00:00 2026-06-01T16:01:14+00:00

I have a layout with a custom status bar on top [below Apple’s status

  • 0

I have a layout with a custom status bar on top [below Apple’s status bar], then a UIScrollview that paginates left to right in the middle section, and then I have a UIView with some custom buttons on the bottom. So a simple three-paned layout, and it works great. However, the three custom buttons on the lower view bring up a ModalViewController, and when that is dismissed, it resizes the middle UIScrollView to full-screen, and brings it to the front, covering the other two views that I have.

There are several others who have noted this behavior, but it seems that the only answers they are given is to re-resize the UIScrollView back to the original coordinates. This will work, of course, but it seems like a hack to me, and I would like ot know what is really going on behind the scenes here, and how to rectify the issue correctly.

Other SO links with the same apparent issue:

  • Dismiss modal view changes underlying UIScrollView
  • Dismissing Modal View Controller causing layout problems
  • Weird Behavior on dismissing Modal View Controller

Still others have noted that the behavior only affects 3.0 and up, so I am not sure if this is a “feature,” and I am just not understanding what the behavior is supposed to be doing, or what. If anyone can shed some light on this, I would be grateful.

  • 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-01T16:01:15+00:00Added an answer on June 1, 2026 at 4:01 pm

    I have exactly the same problem.
    In the parent of the modal view, I’m using this:

    -(void)viewWillAppear:(BOOL)animated{
        [self.view setFrame:CGRectMake(0, 0, originalWidth, originalHeight)];
    }
    

    where originalWidth & originalHeight are the original sizes of my parent view.

    it works fine, even if it sounds like a hack to me too.

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

Sidebar

Related Questions

I have custom component that I can place in my layout file (XML) for
I have a listView with custom objects defined by the xml-layout below. I want
I have custom gallery. Gallery represents items that are frame layout. There are one
I have a custom title bar requestWindowFeature(Window.FEATURE_CUSTOM_TITLE); setContentView(R.layout.activities); getWindow().setFeatureInt(Window.FEATURE_CUSTOM_TITLE, R.layout.custom_title); Which works basically fine.
I have a custom layout that I have written that basically just displays a
I have a Custom ListView created from XML Layout. I want to bind that
i have a custom layout called myWebView that is extended from WebView. class myApp{
I want to implement the below: A spinner which would have a custom layout,
I have implemented a custom Layout that extends RelativeLayout. It displays lots of different
I have a ListView that uses a custom layout that has 5 child View

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.