This could simply be an iOS 10 bug but running an app on an iPhone 6S running iOS 10 device causes the DatePickerDialog to dismiss (since the close() function gets called) itself when the user raises their iPhone or sets the iPhone down. (Similar motions to the raise-to-wake gesture on iPhone 6S/+ devices)
Steps to reproduce:
Launch an app and open the DatePickerDialog view.
Set the device on a table and pick it up to face-height.
The DatePickerDialog view disappears
Reason for the bug and a temporary fix:
The deviceOrientationDidChange method is subscribed to the UIDeviceOrientationDidChange event and calls close() when the event is triggered. iOS 10 is apparently providing the device a UIDeviceOrientationDidChange event on a 'raise' gesture.
A temporary fix--for apps that only support portrait mode-- is to comment the call to close()
This could simply be an iOS 10 bug but running an app on an iPhone 6S running iOS 10 device causes the DatePickerDialog to dismiss (since the close() function gets called) itself when the user raises their iPhone or sets the iPhone down. (Similar motions to the raise-to-wake gesture on iPhone 6S/+ devices)
Steps to reproduce:
Reason for the bug and a temporary fix:
The deviceOrientationDidChange method is subscribed to the UIDeviceOrientationDidChange event and calls close() when the event is triggered. iOS 10 is apparently providing the device a UIDeviceOrientationDidChange event on a 'raise' gesture. A temporary fix--for apps that only support portrait mode-- is to comment the call to close()