uifeedbackgenerator

iOS app crashed due to [UIFeedbackGenerator _autoDeactivate]

谁都会走 提交于 2019-12-03 10:47:41
问题 I received the following report from Crashlytics. I was not calling [UIFeedbackGenerator _autoDeactivate] myself. Maybe some library was doing that. I have done some research but could not find any useful information. Does anyone know what this crash report means? Thank you! Fatal Exception: NSInternalInconsistencyException Exception raised while auto-deactivating <UISelectionFeedbackGenerator: 0x1c012d7a0: prepared=0> for style 2: force deactivating <UISelectionFeedbackGenerator: 0x1c012d7a0

iOS app crashed due to [UIFeedbackGenerator _autoDeactivate]

无人久伴 提交于 2019-12-03 02:21:28
I received the following report from Crashlytics. I was not calling [UIFeedbackGenerator _autoDeactivate] myself. Maybe some library was doing that. I have done some research but could not find any useful information. Does anyone know what this crash report means? Thank you! Fatal Exception: NSInternalInconsistencyException Exception raised while auto-deactivating <UISelectionFeedbackGenerator: 0x1c012d7a0: prepared=0> for style 2: force deactivating <UISelectionFeedbackGenerator: 0x1c012d7a0: prepared=0> with style TurnOn which is not active (activationCount = -1) configuration: <

How to check if Haptic Engine (UIFeedbackGenerator) is supported

最后都变了- 提交于 2019-11-27 02:16:43
问题 I am wondering how we could check if the new iOS 10 API UIFeebackGenerator is available on the current device. There are some more things we would need to check: The device needs to run iOS 10.0 or later The device needs to be an iPhone 7 or later The Haptic Engine needs to be turned on in the Settings The first two checks can be achieved using #available(iOS 10, *) statement and a (hacky) device-detection, but the latter one doesn't seem to be checkable. Does someone know a solution for this