Top "Nstimer" questions

An Objective C class for creating timer objects.

How do I change timing for NSTimer?

I have the following code: timer = [[NSTimer scheduledTimerWithTimeInterval:0.50 target:self selector:@selector(onTimer) userInfo:nil repeats:YES] retain]; -(void) …

ios objective-c nstimer
Pass two arguments to NSTimer in Swift

I have a function that contains strings of text in a TextView. I would like to change the fading of …

ios swift arguments nstimer
scheduledTimerWithTimeInterval vs performselector with delay with iOS 5.0

i am doing function call with scheduledTimerWithTimeInterval. i am just checking that xml parsing is completed or not for particular …

iphone objective-c ios5 nstimer performselector
NSTimer Not Stopping When Invalidated

I have the following code in my .h file: #import <UIKit/UIKit.h> #import <CoreLocation/CoreLocation.h&…

objective-c nstimer
What is replacement of NSTimer.scheduledTimerWithTimeInterval() in swift 3?

I want to implement NSTimer.scheduledTimerWithTimeInterval in Swift 3. I want to know the Replacement of NSTimer.scheduledTimerWithTimeInterval(0.35, target: self, selector: #…

swift swift3 xcode8 nstimer
NSTimer not firing when runloop is blocked

I am just about finished with my app and beta testing found a bug in the stopwatch portion... The stopwatch …

cocoa nsdate nstimer
Stop an NSRunLoop from a timer

I've made a RunLoop with a timer that updates a label that displays a countdown. I need the RunLoop to …

cocoa timer nstimer nsrunloop runloop
How to "validate" a NSTimer after invalidating it?

So basically, I have this timer that should be repeated when it receives a key event, and invalidates when the …

objective-c cocoa nstimer nsrunloop
How to Move Timer to Background Thread

I currently have two NSTimer timers in my app that are responsible for taking data and updating the UI. I …

ios swift grand-central-dispatch nstimer
Pausing timer when app is in background state Swift

My ViewController.swift func startTimer() { timer = NSTimer().scheduleTimerWithTimerInvterval(1.0,target: self,selctor: Selector("couting"),userinfo: nil, repeats: true) } func pauseTimer() { timer.…

ios swift nstimer appdelegate