240 发简信
IP属地:河北
  • 2018-09-20iOS 以scheduledTimerWithTimeInterval的方式触发的timer,在滑动页面上的列表时,timer会暂停,为什么?该如何解决?

    原因在于滑动时当前线程的runloop切换了mode用于列表滑动,导致timer暂停。 runloop中的mode主要用来指定事件在runloop中的优先级,有以下几种: D...