当数组为空时遍历数组容易出这样的问题, -[NSNull countByEnumeratingWithState:objects:count:]: unrecognized selector sent to instance 0x3e4e85e0
 解决办法就是在遍历数组之前先要判断
if (![array isKindOfClass:[NSNull class]])
{
  for循环
}

相关文章:

  • 2021-06-04
  • 2022-02-23
  • 2022-12-23
  • 2022-02-28
  • 2022-12-23
  • 2021-10-05
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-24
  • 2022-12-23
  • 2021-10-12
  • 2022-12-23
相关资源
相似解决方案