私はswift 2.3UIFeedback Haptic Engine
のように使用しています:
let generator = UINotificationFeedbackGenerator()
generator.notificationOccurred(.Warning)
と
let generator = UIImpactFeedbackGenerator(style: .Heavy)
generator.impactOccurred()
今日、このような新しい種類のエラーが発生しましたが、問題が見つかりませんでした。何か考えはありますか?
UIFeedbackHapticEngine _deactivate] called more times than the feedback engine was activated
詳細:
Fatal Exception: NSInternalInconsistencyException
0 CoreFoundation 0x1863e41c0 __exceptionPreprocess
1 libobjc.A.dylib 0x184e1c55c objc_exception_throw
2 CoreFoundation 0x1863e4094 +[NSException raise:format:]
3 Foundation 0x186e6e82c -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:]
4 UIKit 0x18cc43fb8 -[_UIFeedbackEngine _deactivate]
5 UIKit 0x18cad781c -[UIFeedbackGenerator __deactivateWithStyle:]