Re: My app only shows a black screen in the recent apps list
Re: My app only shows a black screen in the recent apps list
- Subject: Re: My app only shows a black screen in the recent apps list
- From: David Duncan <email@hidden>
- Date: Thu, 22 Dec 2016 12:58:29 -0800
Do you do anything special when going into the background? The snapshot is taken shortly after your application is placed in the background, so if your view hierarchy changes that is what will actually be snapshotted.
> On Dec 22, 2016, at 4:05 AM, Andreas Falkenhahn <email@hidden> wrote:
>
> When opening the recent apps list by pressing the home button twice
> my app only shows a black screen instead of an image of the app's
> look the last time it was closed. How can I fix this?
>
> My app's view hierarchy is Window => ViewController.View => ContentView.
> The graphics are drawn by a platform-independent renderer into a
> pixel buffer which is then converted into CGImage which is then
> set as the content view's layer for every new frame like this:
>
> contentView.layer.contents = (id) myImage;
>
> This works fine but in the recent apps list my app is always just
> shown as a black screen which is rather ugly. How can I fix this
> please?
>
> --
> Best regards,
> Andreas Falkenhahn mailto:email@hidden
>
> _______________________________________________
>
> Cocoa-dev mailing list (email@hidden)
>
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
--
David Duncan
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden