Their definition iOS double-click the Home screenshot button switch

Source: Internet
Author: User

<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

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.