White screen when IOS opens the push Application

Source: Internet
Author: User
Tags blank page notification center

It runs normally on the simulator, but it is pushed to the real machine. After the push, the screen is white when the push application is opened. After the white screen is pushed, the screen is minimized and then clicked to display it normally.

After the white screen, the controls on the page can still be used, that is, invisible. If you pull the notification center from the top, you can see the page again. Let the notification center go back and change it to a white screen!
Strange!

This problem seems to be related to the main interface of the entry. This warning should appear at the same time when this problem occurs. "applications
Are expected to have a Root View Controller at the end of application launch ",

Here is a solution, which is implemented by adding mainwindow (the simulator is normal.



But ........



My solution is the opposite, because the program itself has mainwindow. XIB, And the configuration is correct,
It is a blank page. We do not need mainwindow after iOS 5. XIB, root viewcontroller is directly written in the finished function. I checked the project file-> Summary-> main interface. The return entry is mainwindow, but my root
View has nothing to do with it. In contrast to the previous project, the value of this place is directly empty, so the pipe section is left empty and run, and the problem is gone!


The specific reason is unclear,
My guess is that after the APP returns to the background, the reading entry (Value in summary) in the HC plist file is loaded with the wrong page because it is different from the defined root.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.