Question:
The whole app does not know from which version, all UIScrollView, as well as UIScrollView subclasses, when rolling decelerate, all will be stuck, with YYFPSLabel detection, basically at about 53FPS.
Troubleshooting process:
At first, I had no idea
-
Write a new TableView, add the simplest TableView, scroll, still stutter, eliminate the effect of page height, image loading.
-
I found the UIViewController category and deleted it, but it’s still stuck.
-
Thinking for a long time at the screen.
-
Find guo YY God’s smooth one of the Tableviewdemo look.
-
When I saw the message on my phone, I switched to the app and replied, then I cut back to the app and found the problem of the lag. The whole process was 60fps (it seems that I found the problem), but I still couldn’t figure out the problem.
-
Since the volume of the business is not very large and there is no componentization, the dumbest solution is to delete all the business code locally, leaving only the files in the Common folder and the simplest newly written TableView
-
Delete the third party libraries under Vendors one by one
-
It was not until UMVisualSDK was removed that FPS returned to normal
-
Finally locating the UMVisual library caused the whole app UIScrollView to stall
As a result, the bug that had been located all day was finally fixed. In the future, third-party libraries, especially those that affect the performance of the entire APP, should be fully pre-studied and tested before they can be used