for in traverse without modifying the traversed array. It is recommended to change it to array enumerateObjectsUsingBlock... method to traverse. This can be modified without crashing. I have encountered the same problem
According to the prompt, your HCFavoriteIconView does not have the nodeIndex attribute or method! If you want to make modifications while traversing the array, it is recommended to use enum to traverse
When traversing array elements, it is normal logic to add the required elements to a variable array, and then assign the variable array back after traversing it
The console output shows [HCFavoriteIconView nodeIndex], indicating that HCFavoriteIconView cannot access this nodeIndex. First, confirm that the nodeIndex of your object exists.
for in traverse without modifying the traversed array. It is recommended to change it to array enumerateObjectsUsingBlock... method to traverse. This can be modified without crashing. I have encountered the same problem
It’s not good to modify the array while traversing it...
Modifying and deleting the array while traversing will definitely cause problems
The traversed array cannot be changed during traversal
According to the prompt, your HCFavoriteIconView does not have the nodeIndex attribute or method! If you want to make modifications while traversing the array, it is recommended to use enum to traverse
When traversing array elements, it is normal logic to add the required elements to a variable array, and then assign the variable array back after traversing it
HCFavoriteIconView
没有nodeIndex
, 或者你把nodeIndex
发给了不存在这个方法的对象0x7e3930e0
, you can use category to debug the reason:The console output shows [HCFavoriteIconView nodeIndex], indicating that HCFavoriteIconView cannot access this nodeIndex. First, confirm that the nodeIndex of your object exists.