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

  • Home
  • SEARCH
  • 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 1052185
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T17:03:09+00:00 2026-05-16T17:03:09+00:00

I have a viewController that pops a modal view with a UIWebView. If I

  • 0

I have a viewController that pops a modal view with a UIWebView. If I visit a particularly heavy page, I start getting memory warnings, followed by the parent view getting unloaded. This is all fine and dandy, but when I close the modal view, my parent reloads (as expected) but is not longer able to process any touch events. The app responds to orientation changes correctly, but no amount of touching changes anything. Buttons don’t work, a UIWebView doesn’t respond to scrolling (but loads a default website), etc. It’s as if there is a transparent UIView overlaying my entire window. Any ideas why this may occur?

Here’s how I show the modal window:

BrowsingViewController* controller = [[BrowsingViewController alloc] 
    initWithNibName:UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad ?     
    @"BrowsingViewController-iPad" : @"BrowsingViewController" 
      bundle:nil initialURL:[[request URL] absoluteString]];    
[self presentModalViewController:controller animated:YES];      
[controller release];

Here’s how I dismiss it (from the modal view itself):

- (void) onCloseTouch
{   
    [self.parentViewController dismissModalViewControllerAnimated:YES]; 
}

EDIT:

Going through the view hierarchy, I don’t notice anything out of the norm. Here are my log statements for the main view controller. They are identical both before and after I show my modal view:

viewWillAppear called.
=============== parentViewController subviews count=2
View [0] is a UINavigationTransitionView
subview count=0
View [1] is a UINavigationBar
subview count=2
      subview [0] is a UINavigationItemView
      subview [1] is a UINavigationButton
=============== self views subviews count=3
View [0] is a UIWebView with tag [1]
subview count=1
      subview [0] is a UIScrollView with tag [0]
View [1] is a UIToolbar with tag [2]
subview count=3
      subview [0] is a UIToolbarTextButton with tag [0]
      subview [1] is a UIToolbarButton with tag [0]
      subview [2] is a UIToolbarButton with tag [0]
View [2] is a UIView with tag [3]
subview count=2
      subview [0] is a UIActivityIndicatorView with tag [31]
      subview [1] is a UILabel with tag [32]

EDIT #2:
This issue does not appear to occur on iPhone, just iPad. I have examined all places where I am performing a if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) and none of this logic appears to be of any consequence.

  • 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-16T17:03:10+00:00Added an answer on May 16, 2026 at 5:03 pm

    I wouldn’t dismiss in that manner; I would use the delegate pattern instead: when BrowsingViewController wants to close, it calls something like [delegate browsingViewControllerDidFinish:self];. This is the “usual” way to dismiss the view controller, and it also eliminates the requirement that BrowsingViewController always be presented modally by its parent view controller.

    What are the differences between the BrowsingViewController and BrowsingViewController-iPad xibs?

    I would do some checking in the “parent” view controller, stepping through its view and all subviews to see if there’s anything overlaid (as you say) atop the entire view hierarchy that is blocking the touch events.

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

Sidebar

Related Questions

i have more viewcontroller that start from rootviewcontroller. So for example i start with
I want to have a ViewController that has a table view on the top
I have a paged scrollview. Each page has a viewcontroller (buttonViewController) that manages a
Let's say I have a ViewController that needs access to a view. In the
I have a viewController (Planner) that loads two view controllers (InfoEditor and MonthlyPlan) when
I have a view controller, let's call it HomeViewController , that pops up an
In this little test app, I have a ModalViewController that pops up over View
I have a ViewController that includes its own .nib file, I am wanting to
I have a ViewController that has its own NIB. I would like to embed
I have a viewController that autorotates just fine, The problem is that is I

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.