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 <andr...@falkenhahn.com> 
> 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:andr...@falkenhahn.com
> 
> _______________________________________________
> 
> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
> 
> 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:
> https://lists.apple.com/mailman/options/cocoa-dev/david.duncan%40apple.com
> 
> This email sent to david.dun...@apple.com

--
David Duncan


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to