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.
谁能告诉我是否可以改变NSTimer它发射的时间间隔?
NSTimer
似乎这应该是可能的,但还没有弄清楚如何。
基本上,我试图创造一个减速效果。
更改计时器的间隔可能不是实现“减速”效果的正确方法——最好让计时器以相同的速率更新,并在每次迭代中将其影响的值更改得少一点。