iOS 9 App freeze with console log “BKSendHIDEvent”

后端 未结 3 396
南旧
南旧 2020-12-31 08:38

After app launched for a long time, there are some logs in console while touching the screen:

BKSendHIDEvent: IOHIDEventSystemConnectionDispatchEvent error:0xE

3条回答
  •  Happy的楠姐
    2020-12-31 09:04

    I have got fix for that... In My case using swift, with Xcode 7.2. I have used custom label, and func layoutSubviews() call infinite time and console is showing BKSendHIDEvent: IOHIDEventSystemConnectionDispatchEvent

    below is fix for same:

    class CustomLabel: UILabel {
    
     var isSubLayoutSet: Bool = false
    
        override internal init(frame: CGRect) {
            super.init(frame: frame)
    
        }
        required internal init?(coder aDecoder: NSCoder) {
            super.init(coder: aDecoder)
        }
    
        override func layoutSubviews() {
            super.layoutSubviews()
    
            if isSubLayoutSet == false
            {
                //--- do your stuff related to set font or any operation...
                ///---
                isSubLayoutSet = true
            }
        }
    

提交回复
热议问题