正文-[NSNull countByEnumeratingWithState:objects:count:]:IP云V管理员/2022-06-29/1 阅读 06/29小程序:扫一扫查出行【扫一扫了解最新限行尾号】复制小程序 当数组为空时遍历数组容易出这样的问题, -[NSNull countByEnumeratingWithState:objects:count:]: unrecognized selector sent to instance 0x3e4e85e0 解决办法就是在遍历数组之前先要判断if (![array isKindOfClass:[NSNull class]]){for循环}