Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

倒计时传值 #1

Open
ZClee128 opened this issue Aug 16, 2020 · 4 comments
Open

倒计时传值 #1

ZClee128 opened this issue Aug 16, 2020 · 4 comments

Comments

@ZClee128
Copy link

你这个倒计时,只需要传入过期时间就可以吗?还是怎么样的,因为只有一个时间戳,是否可以加入NSDate类型加载的

@LoSenTrad
Copy link
Owner

LoSenTrad commented Aug 16, 2020 via email

@ZClee128
Copy link
Author

这个我知道,我转后发现你这个倒计时不对,请求完服务器拿到服务器时间,然后[LSTTimer addTimerForTime:[model.currentDate DateToNSTimeIntervalFormatter] identifier:@"TeamlistTimer" handle:nil];添加,但是出来的结果是错的

@LoSenTrad
Copy link
Owner

LoSenTrad commented Aug 16, 2020 via email

@ZClee128
Copy link
Author

就是参考你demo的,但是你demo是同步的,现在是异步,服务器时间回来,你的通知根本没走,时间也拿不到

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants