If you double-click Home, will come to the iOS app switcher page, here listed the current system hangs the app, above the screen of each app, I believe everyone is familiar with this stuff. It is actually each app in front of the app before it's loaded on a screen.
So how do we customize its display on the app switcher, understand that it is actually on the app's screen, then in it fast into the background when we change its appearance, then the picture is loaded down, it does not change it?
After understanding this principle, let's try it.
Create a new project, prepare three pictures, defautl.png, [email protected], [email protected], put it into the project.
We declare a Uiimageview variable in the AppDelegate.h
The code is as follows:
-(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;}
Customize iOS by double-clicking on home key map toggle