<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Nstimer on Arcanelab Blog</title><link>https://blog.arcanelab.com/tags/nstimer/</link><description>Recent content in Nstimer on Arcanelab Blog</description><generator>Hugo</generator><language>en-US</language><copyright>Zoltán Majoros</copyright><lastBuildDate>Wed, 07 Jul 2010 19:23:00 +0200</lastBuildDate><atom:link href="https://blog.arcanelab.com/tags/nstimer/index.xml" rel="self" type="application/rss+xml"/><item><title>NSTimer invalidate When you create an NSTimer, and specify it to be a non-repeat…</title><link>https://blog.arcanelab.com/2010/07/nstimer-invalidate-when-you-create-an-nstimer-and-specify/</link><pubDate>Wed, 07 Jul 2010 19:23:00 +0200</pubDate><guid>https://blog.arcanelab.com/2010/07/nstimer-invalidate-when-you-create-an-nstimer-and-specify/</guid><description>&lt;h1&gt;NSTimer invalidate&lt;/h1&gt;
&lt;p&gt;When you create an NSTimer, and specify it to be a non-repeat timer, you don&amp;rsquo;t have to invalidate it after it fired.&lt;/p&gt;
&lt;p&gt;When you created a repeating timer, you send the invalidate message to it to remove it from the NSRunLoop object it was added to, and thus stopping it from being fired any more. When you invalidated an NSTimer object, you cannot use it again.&lt;/p&gt;
&lt;p&gt;More info &lt;a href="http://stackoverflow.com/questions/1583706/iphone-multiple-nstimer-troubles"&gt;here&lt;/a&gt; and &lt;a href="http://developer.apple.com/iphone/library/documentation/cocoa/reference/foundation/Classes/NSTimer_Class/Reference/NSTimer.html"&gt;here&lt;/a&gt;.&lt;/p&gt;</description></item></channel></rss>