setobjectforkey专题

IOS程序运行时崩溃日志setObjectForKey: object cannot be nil

Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** setObjectForKey: object cannot be nil (key: 0)' 提示如上: 解决方案 1、可能你插入的图片不存在会报此异常 2、插入对象为空