简体   繁体   中英

The View has Disappear when press home button

I am develop IOS App ,and run the App on my iPhone.

I press the Home Button on iPhone , but when I click twice for Home button and turn to my App , it show the View like the following picture. The View is Disappear when I went back.

在此处输入图片说明

But I don't close the view at the viewDidDisappear or viewWillDisappear . And then when I click the App , it show the blank View like the following picture.

在此处输入图片说明

I have no idea about this...Can someone help me ?

I think yu didn't use the following functions 1.applicationWillResignActive & 2.applicationWillEnterForeground in your Application. so please use this following functions in AppDelegate.m - (void)applicationWillResignActive:(UIApplication *)application { } -(void)applicationWillEnterForeground:(UIApplication *)application{ }

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM