它在原木上撞坏了2011-06-16 10:58:36.251BV API[15586:ef03] +[NSNull isEqualToString:]: unrecognized selector sent to class 0x1228c40
2011-06[15586:ef03] *** Terminating app due to uncaught exception 'NSInvalidArgume
如果我实现了CALayer委托方法actionForLayer:forKey,我可以返回[NSNull null]以强制CALayer不动任何更改。不幸的是,[NSNull null]没有实现CAAction委托,XCode发出了以下警告:
- (id<CAActionIt was doing weird things
我的问题是,当一些值为[NSNull null]时,我不能直接赋值给属性:这将抛出一个NSInvalidArgumentException"winnerID"; desired type = NSString; given type = NSNull; value = <null>;fight.winnerID =
一旦执行第二行代码,我就会得到:
Could not cast value of type 'NSNull' (0x1b7f59128) to 'NSString' (0x1b7f8ae8).你知道动作是如何被NSNull的吗,即使我把它解开了?我甚至尝试过"if action != nil",但它仍然以某种方式滑过并导致SIGABRT。