crash prompt
2023-06-28 21:14:46.962456+0800 -[UIDynamicCatalogColor length]: unrecognized selector sent to instance 0x6000073292c0
The crash is shown in the figure below
Idea, since we can’t find it through the stack information of the call, try to view the detailed information of the object through the memory address of the crashed object.
As shown in the figure, click the icon to view the memory distribution
Enter the memory address of the crash object in the input box on the left to locate the crash object
Find a button along the holding relationship chain, as shown in the figure, click the expansion symbol, as shown in the red box, to view the upper level of the relationship chain
The expanded relationship chain is shown in the figure
We can know that the object we crashed is in a certain cell and is held by the _shareButton of the cell,
so that we can locate the problem in the shareButon in PaperHotCommentCell
Then combined with the crash information
[UIDynamicCatalogColor length]: unrecognized selector sent to instance 0x6000073292c0
It is to take the length of a color, so we can guess that it is set to set the title to the color
The last modification is as follows