UIFeedbackGenerator object creation failed on iOS 10.0

Has anyone else come across this? In particular, with iPhone 6 with iOS 10.0, I get consistent reports of the following failure:

if #available(iOS 10.0, *) { UISelectionFeedbackGenerator() } 

Where it is not even used, it has just been created, and it causes EXC_BAD_ACCESS fail. Documents say that it just fails if the device does not support it. Oddly enough, if I changed the check on iOS 10.0.1 , it works fine.

Am I doing something wrong?

+6
source share

Source: https://habr.com/ru/post/1011730/


All Articles