method not called with dispatch_async and repeating NSTimer
I am developing an app where i want to call method in separate queue using dispatch_async . I want to call that method repeatedly after certain interval of time. But the method is not getting called. I don't know whats wrong. Here is my code: dispatch_async( NotificationQueue, ^{ NSLog(@"inside queue"); timer = [NSTimer scheduledTimerWithTimeInterval: 20.0 target: self selector: @selector(gettingNotification) userInfo: nil repeats: YES]; dispatch_async( dispatch_get_main_queue(), ^{ // Add code here to update the UI/send notifications based on the // results of the background processing }); })