<pre name= "code" class= "OBJC" ><p> double-click Suppose home, I will go to the iOS app switcher page, here list to the current system app, there are each app's cutting screen, I believe everyone is familiar with this stuff.It's actually every app before it hangs. </p><p> on the back of the app to download the screen. </p><p> So how do we define its display on the app switcher? Make it clear that it is actually a screen for the app, so when it's coming into the background, we change the look, then load the picture. Is it a change? </p><p> code such as the following </p>
@interface Appdelegate ()
{
Uiimageview *screenshotview;
}
@end
-(void) Applicationwillresignactive: (uiapplication *) application{if (!screenshotview) {screenshotview = [[ Uiimageview Alloc]initwithframe:[self.window frame]; [Screenshotview setimage:[uiimage imagenamed:@ "default-568h"]; [Self.window Addsubview:screenshotview]; } Screenshotview.alpha = 1;} -(void) Applicationdidbecomeactive: (uiapplication *) application{screenshotview.alpha = 0;}
Copyright notice: This article blog original article. Blogs, without consent, may not be reproduced.
Their definitions iOS double-click the home button switch