Top "Nstimer" questions

An Objective C class for creating timer objects.

How to pass an argument to a method called in a NSTimer

I have a timer calling a method but this method takes one paramether: theTimer = [NSTimer scheduledTimerWithTimeInterval:animationInterval target:self selector:@…

objective-c arguments nstimer nsinvocation
PerformSelector After delay doesn't run in background mode - iPhone

I have a voip application which runs constantly on the background as well. While I'm in the background I'm calling …

iphone objective-c ios4 nstimer nsrunloop
swift NSTimer userinfo

I'm trying to pass a UIButton with a NSTimer's userinfo. I've read every post on stackoverflow on NSTimers. I'm getting …

swift nstimer userinfo
How to get an NSTimer to stop repeating after a condition is met

I have two NSTimers that I programmed to make a button appear on the screen and then disappear. How can …

ios swift nstimer
Timer in another thread in Objective - C

I have to define method which should be invoked periodically with some time interval. I need to invoke it in …

ios objective-c nstimer nsrunloop nsblockoperation
NSTimer vs CACurrentMediaTime()

So I'm amidst my first iOS game and am struggling with how to go about the best way to integrate …

ios nstimer game-engine
Running NSTimer on a thread

I am trying to run a NSTimer on a thread using iPhone SDK 3.0. I think I am doing everything correctly (…

iphone nstimer nsthread runloop
NSTimer not firing selector when added with scheduledTimerWithTimeInterval

I have a code snippet like this: m_timer = [NSTimer scheduledTimerWithTimeInterval:timeOutInSeconds target:self selector:@selector(activityIndicatorTimer:) userInfo:nil repeats:…

ios nstimer
iPhone: Using dispatch_after to mimick NSTimer

Don't know a whole lot about blocks. How would you go about mimicking a repeating NSTimer with dispatch_after()? My …

objective-c nstimer objective-c-blocks grand-central-dispatch invocation
Continue countdown timer when app is running in background/suspended

I have a functional countdown timer. The problem is that I need to continue the countdown when the user puts …

ios swift nstimer background-process countdown