Giter VIP home page Giter VIP logo

Comments (13)

LoSenTrad avatar LoSenTrad commented on August 20, 2024

@luo-h 我排查一下

from lsttimer.

LoSenTrad avatar LoSenTrad commented on August 20, 2024

@luo-h 你在列表使用倒计时吗?

from lsttimer.

LoSenTrad avatar LoSenTrad commented on August 20, 2024

@luo-h 我测试了5分钟 没出现问题呀

from lsttimer.

luo-h avatar luo-h commented on August 20, 2024

不是列表,就是VC里面,用add和addMinuteTimer都有这个情况,我看简书评论里面也有一个人出现了这个情况啊。你可以开一个网页的倒计时作参照对比

from lsttimer.

LoSenTrad avatar LoSenTrad commented on August 20, 2024

@luo-h 你把你的代码复制一份给我 我来测试一下

from lsttimer.

luo-h avatar luo-h commented on August 20, 2024

LSTTimer.addMinuteTimer(forTime: TimeInterval(700),
identifier: "lkillTimer") {[weak self] (_, h, m, s, _) in
if h == "00" && m == "00" && s == "00" {
return
}
self?.setAppointmentAtrributeStr(timeStr: "((h):(m):(s))")
}

from lsttimer.

luo-h avatar luo-h commented on August 20, 2024

老哥,怎么样

from lsttimer.

LoSenTrad avatar LoSenTrad commented on August 20, 2024

@luo-h 加我一下微信 我这边好排查

from lsttimer.

sizhugongzi avatar sizhugongzi commented on August 20, 2024

你好,请问一下,NSTimer被添加在mainRunLoop中,mainRunLoop负责所有主线程事件,例如UI界面的操作,复杂的运算,这样就会造成timer的阻塞,NSTimer不准确,可以考虑GCD的定时器dispatch_time_t吗?

from lsttimer.

sizhugongzi avatar sizhugongzi commented on August 20, 2024

还有一个问题LSTPopView这个框架写的很好,嵌入一个倒计时会不会有点臃肿呀.

from lsttimer.

sizhugongzi avatar sizhugongzi commented on August 20, 2024

Simulator Screen Shot - iPhone 11 - 2021-09-08 at 18 04 36

from lsttimer.

LoSenTrad avatar LoSenTrad commented on August 20, 2024

你好,请问一下,NSTimer被添加在mainRunLoop中,mainRunLoop负责所有主线程事件,例如UI界面的操作,复杂的运算,这样就会造成timer的阻塞,NSTimer不准确,可以考虑GCD的定时器dispatch_time_t吗?

有时间的话 可以优化的 谢谢

from lsttimer.

LoSenTrad avatar LoSenTrad commented on August 20, 2024

还有一个问题LSTPopView这个框架写的很好,嵌入一个倒计时会不会有点臃肿呀.

有强迫症的 可能感觉会吧 有时间的话尽量除去所有依赖库 保证纯净不依赖

from lsttimer.

Related Issues (4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.