xcode8.1:invalid mode 'kCFRunLoopCommonModes' provided to CFRunLoopRunSpecific - break on _CFRunLoopError_RunCalledWithInvalidMode to debug

前端 未结 3 1478
名媛妹妹
名媛妹妹 2021-02-10 12:36

I write the code below:

JSImgDeleteCollectionViewCell *cell = [collectionView dequeueReusableCellWithReuseIdentifier:displayCellID forIndexPath:indexPath];
         


        
3条回答
  •  清酒与你
    2021-02-10 13:08

    I had faced the same issue

    CFRunLoopRunSpecific - break on _CFRunLoopError_RunCalledWithInvalidMode to debug. This message will only appear once per execution.

    But I found this is not the real reason behind crashing the app, the real reason i found below the above message as Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSNull length]:unrecognized selector sent to instance 0x102ed2fb0' on console is real reason. So, I handle the null value which i received from backend.

提交回复
热议问题