Wednesday, 14 August 2013

To call a function repeatedly at particular interval in Objective C.


[NSTimer scheduledTimerWithTimeInterval: 2.0 target: self
                                                      selector: @selector(yourMethod) userInfo: nil repeats: YES];