Hello.
I'm running Xcode 8 and I'm working on a simple iOS app (version 9.3) and I'm getting the unusual warning message below under some circumstances:
2016-09-18 00:28:29.415 Home Inventory[8771:1832051] Cannot snapshot view (<UIKeyboardImpl: 0x7fee7b73c420; frame = (0 0; 320 253); layer = <CALayer: 0x60000022ae00>>) with afterScreenUpdates:NO, because the view is not in a window. Use afterScreenUpdates:YES.
I'm not calling snapshotView so I don't know why I'm getting this message. It only occurs when I click in a text field, the keyboard appears, and I then click outside the text field which causes the view containing the text field to call endEditing which removes the keyboard. I then press the Home button and that's when the warning above appears. I don't get the warning if the keyboard is still visible when I click the Home button. The app works fine even when the warning appears. I've been able to determine that the warning is triggered sometime after applicationDidEnterBackground has completed execution.
Is this a bug in Xcode or did I neglect to set some attribute somewhere?
Thanks in advance for any advice.
Bill