'-[NSNull countByEnumeratingWithState:objects:count:]: unrecognized selector sent to instance 0x1...

错误信息

reason: '-[NSNull countByEnumeratingWithState:objects:count:]: unrecognized selector sent to instance 0x1b66c0878'

问题分析

当数组为空时遍历数组容易出这样的问题, -[NSNull countByEnumeratingWithState:objects:count:]: unrecognized selector sent to instance 0x3e4e85e0

问题解决

做一下判空处理

你可能感兴趣的:('-[NSNull countByEnumeratingWithState:objects:count:]: unrecognized selector sent to instance 0x1...)