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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T04:27:50+00:00 2026-06-01T04:27:50+00:00

I have a problem with a strange crash on iPad 5.0. This crash only

  • 0

I have a problem with a strange crash on iPad 5.0.
This crash only occurs on iOS 5.0 and with iPad with a modal ViewController and that ViewControler style set to anything but fullscreen, which works fine.

I included a code example. If you run it and press the Pagesheet button a Window will appear with a UIWebView and a Youtube video. Once the video start, press “fullscreen” to trigger the bugg. (Only iOS 5, it will work in iOS 4.x).

If you press the fullscreen button, the only difference will be that I am using a fullscreen style for the modal UIViewController and the video plays just fine.

Does anyone know a work around, or a better solution?

Terminating app due to uncaught exception “UIViewControllerHierarchyInconsistency” reason: “child view controller: “UIViewController: 0x85d5e00″ should have parent view controller:”NewsTableViewController: 0x855f7b0″ but requested parent is:”MPInlineVideoViewController: 0x85d3a20”

Source code (Dropbox) http://db.tt/xqMbeYP1

  • 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-01T04:27:52+00:00Added an answer on June 1, 2026 at 4:27 am

    This is not an error on part of the UIWebView.

    What happened was that Apple finally became strict as to the way in which it maintains the application’s view hierarchy. Prior to iOS 5.x, developers were able to remove a view from one hierarchy and add it to another. The perfect example of this would be say, the application’s main view hierarchy; when presenting a modal view controller, this modal view controller has its own view hierarchy which isn’t part of the application’s view hierarchy; therefore, if the modal view controller had a subview and within that view it had say a movie (which happens to be a view as well) and this movie were to be maximized, the movie’s view would be removed from the modal view controller’s hierarchy and added to the application’s view hierarchy…

    application                                              modal view controller
       |                                                              |
       |                                                              |
    window                                                          view
       |                                                              |
       |                                                              |
       |----------------                                   ------------------
       |               |                                   |                |
       |               |                                   |                |
    subview 1     subview 2                             subview 3         movie
    

    As may be seen, the modal view controller’s view hierarchy lies outside of the application’s view hierarchy, this was not a problem prior to iOS 5.x because, when the modal view controller was presented and the movie was maximized, what Apple did was the following:

    application                                              modal view controller
       |                                                              |
       |                                                              |
    window                                                          view
       |                                                              |
       |                                                              |
       |-------------------------                          ------------
       |          |             |                          |
       |          |             |                          |
      movie    subview 1     subview 2                  subview 3
    

    With the movie appearing above all the other views. This no longer is the case in iOS 5.x+, it is an error to do that and you will be presented with the error with which you were, previously, greeted.

    In order to work-around this issue, you need to make the modal view controller’s view into the application’s view hierarchy by not presenting the view controller as a modal view controller and, then, adding the view controller’s view to the application’s hierarchy as follows:

                                                              application
                                                                   |
                                                                   |
    modal view controller                                        window
              |                                                    |
              |                                                    |
              ---------------------------------------------------------------
              |                                       |                     |
              |                                       |                     |
             view                                  subview 1            subview 2
              |
              |
        -------------------
        |                 |
        |                 |
     subview 3          movie
    

    From this point forward, everyone needs to really think, from the very beginning, how to properly structure view hierarchies and how they will interact with one another, as well as future scalability within those large projects.

    This issue was well-documented by Apple during their 2011 WWDC. It is discussed within Session 102.

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

Sidebar

Related Questions

I have a strange problem that is only happening in a single location. I
I have a strange problem with mod_rewrite, the rules that are relevant here are:
I have a very strange problem with facebook OG. https://fit.upjet.com/en/pages/news/270/ - this is a
I have a strange problem when deleteting records using linq, my suspicion is that
I have strange problem. I set a JProgressBar: private JProgressBar progressBar; public void foo()
I'm having a strange problem with Android 1.6 I have an application that has
I have a problem so strange that I hardly can put an adequate title
I have strange problem with modal widows in ASP.NET MVC. I created a link
I have strange problem with sharepoint and ajax functionality. We have an UpdatePanel placed
i have strange problem doing reporting: i have numerous clients with different issued invoices.

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.