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
您可以在向计时器调用无效后发布通知。
让当前视图控制器监听通知推送到另一个视图控制器
使用相同的倒计时在 [self performeSelector after delay] 上启动另一个方法。
Is there a more elegant way to do this:
widget.notes.where(:author_id => a).first.message= widget.notes.where(:author_id => a).first.message