Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 AsyncSocket 库,我尝试创建一个 NSTimer 但它没有触发。当我删除异步套接字代码时,我的计时器开始工作。我很确定 AsyncSockets 是造成这种情况的原因,那么我该如何使用 NSTimers,这可能是什么原因?
我addTimerToRunloop在 AsyncSocket 库中找到了解决此问题的方法。
addTimerToRunloop