![iOS 程序报错:reason: [NSArrayI addObject:]: unrecognized selector sent to instance iOS 程序报错:reason: [NSArrayI addObject:]: unrecognized selector sent to instance](https://image.shishitao.com:8440/aHR0cHM6Ly9ia3FzaW1nLmlrYWZhbi5jb20vdXBsb2FkL2NoYXRncHQtcy5wbmc%2FIQ%3D%3D.png?!?w=700&webp=1)
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSArrayI addObject:]: unrecognized selector sent to instance 0x4b17be0'
错误:NSArray 不能使用 addObject:方法。可能是在程序运行的过程中,NSMutableArray转为了NSArray。
解决方案:核查数组,看看是否在NSArray 之后使用了addObject:方法 。