View Full Version : Add a timer to my app

Apr 21, 2009, 10:12 AM
I have seen apps where they give you a certain amount of time to answer a question or something. I want to add that to my app, but I don't know how. Can someone point me in a direction? What functions should I be looking up? I don't really know where to start.

Apr 21, 2009, 10:17 AM
NSTimer (http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSTimer_Class/index.html).

or potentially

perfromSelector:withObject:afterDelay: (http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSObject_Class/Reference/Reference.html#//apple_ref/occ/instm/NSObject/performSelector:withObject:afterDelay:)