How can I add a timeout retry feature to a method in Objective-C?

  ios, question

Current useNSTimerCan partially achieve the goal, do not know if there is a better idea?

Can you estimate the time of each overtime? I don’t think NSTimer is helpful. In addition, it is better to explain your application scenario, whether the network request is overtime or something, and it is better to be specific.