我写下面的代码:
JSImgDeleteCollectionViewCell *cell = [collectionView dequeueReusableCellWithReuseIdentifier:displayCellID forIndexPath:indexPath];
Run Code Online (Sandbox Code Playgroud)
在使用它之前,我注册了它:
[_displayImgCollectionView registerNib:[UINib nibWithNibName:displayCellID bundle:nil] forCellWithReuseIdentifier:displayCellID];
Run Code Online (Sandbox Code Playgroud)
它在xcode7.3中没问题,但是当我在xcode8.1中运行时,有错误,这样的msg:
提供给CFRunLoopRunSpecific的无效模式'kCFRunLoopCommonModes' - 在_CFRunLoopError_RunCalledWithInvalidMode上中断以进行调试.此消息仅在每次执行时出现一次.
libsystem_c.dylib`__abort:
0x18ce163ec <+0>: adrp x8, 150192
0x18ce163f0 <+4>: add x8, x8, #0 ; =0
0x18ce163f4 <+8>: ldr x9, [x8, #8]
0x18ce163f8 <+12>: cbnz x9, 0x18ce16408 ; <+28>
0x18ce163fc <+16>: adrp x9, 27
0x18ce16400 <+20>: add x9, x9, #1393 ; =1393
0x18ce16404 <+24>: str x9, [x8, #8]
0x18ce16408 <+28>: stp x20, x19, [sp, #-32]!
0x18ce1640c <+32>: stp x29, x30, [sp, #16]
0x18ce16410 <+36>: add …Run Code Online (Sandbox Code Playgroud)