Start a new topic

Snapshotting a view that has not been rendered results in an empty snapshot

Hi Wikitude;


I have a problem using sdk 7.1 (and official samples), IOS 10.3 with iPhone 5 and 6:


2017-10-09 18:28:35.802216-0300 SDKExamples[3484:609571] Cannot snapshot view (<UIKeyboardImpl: 0x143dc1dc0; frame = (0 0; 375 258); layer = <CALayer: 0x170230000>>) with afterScreenUpdates:NO, because the view is not in a window. Use afterScreenUpdates:YES.

2017-10-09 18:32:50.612882-0300 SDKExamples[3484:609571] Snapshotting a view that has not been rendered results in an empty snapshot. Ensure your view has been rendered at least once before snapshotting or snapshot after screen updates.


How can I fix the problem?...


Thanks.


Chris.

1 Comment

Hi Chris,

are you actually trying to capture the screen before the `WTArchitectView` is added to the view hierarchy or does this log also appears in case the view is already added to the hierarchy and rendering the camera/augmentations? Please note that the capture screen method provided in the Wikitude SDK is only meant to capture the content of the `WTArchitectView` and no other.


Best regards,

Andreas

Login or Signup to post a comment