Comments (13)
@luo-h 我排查一下
from lsttimer.
@luo-h 你在列表使用倒计时吗?
from lsttimer.
@luo-h 我测试了5分钟 没出现问题呀
from lsttimer.
不是列表,就是VC里面,用add和addMinuteTimer都有这个情况,我看简书评论里面也有一个人出现了这个情况啊。你可以开一个网页的倒计时作参照对比
from lsttimer.
@luo-h 你把你的代码复制一份给我 我来测试一下
from lsttimer.
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.
老哥,怎么样
from lsttimer.
@luo-h 加我一下微信 我这边好排查
from lsttimer.
你好,请问一下,NSTimer被添加在mainRunLoop中,mainRunLoop负责所有主线程事件,例如UI界面的操作,复杂的运算,这样就会造成timer的阻塞,NSTimer不准确,可以考虑GCD的定时器dispatch_time_t吗?
from lsttimer.
还有一个问题LSTPopView这个框架写的很好,嵌入一个倒计时会不会有点臃肿呀.
from lsttimer.
from lsttimer.
你好,请问一下,NSTimer被添加在mainRunLoop中,mainRunLoop负责所有主线程事件,例如UI界面的操作,复杂的运算,这样就会造成timer的阻塞,NSTimer不准确,可以考虑GCD的定时器dispatch_time_t吗?
有时间的话 可以优化的 谢谢
from lsttimer.
还有一个问题LSTPopView这个框架写的很好,嵌入一个倒计时会不会有点臃肿呀.
有强迫症的 可能感觉会吧 有时间的话尽量除去所有依赖库 保证纯净不依赖
from lsttimer.
Related Issues (4)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lsttimer.