objective-c - IOS implements synchronization operation + timeout mechanism, how to optimize my solution [timer is repeatedly created]
My problem is as shown in the picture, please help me find a solution. It is not necessary to use a timer, but I don’t know how to solve it here. I don’t want to repeatedly allocate memory