i am trying to active scheduledTimerWithTimeInterval not in the main thread. this is my code.
-(void)setMidnightUpdate{
   dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 
                                            0), ^{
        if(midnightTimer && [midnightTimer isValid]) {
            [midnightTimer invalidate];
            midnightTimer = nil;
        } 
secs = 10;
midnightTimer = [NSTimer scheduledTimerWithTimeInterval:secs 
                                                 target:self 
                                               selector:@selector(midnightUpdate) 
                                               userInfo:nil 
                                                repeats:NO];
});
-(void)midnightUpdate{
}
Any idea guys?
 
     
     
     
    