i have a implemented NSTimer
with timer = [NSTimer scheduledTimerWithTimeInterval:20 target:self selector:@selector(methodName) userInfo:nil repeats:YES];
in UIViewController
.
It is working fine without any issue. But if when i click iphone home button applicationDidEnterBackground
will be call. I minimize the application for 10 second
than i open app again. So methodName
will be called after 10 second
and its working. i dont have any issue with this. I just want to know that when app gone in backgroud
mode timer
is running on backgroud ???
i think it timer is working in backgroud so it call after 10 second
otherwise it called after 20 second
.
What timer
will do when app is go in backgroud mode
?? It preserve the last time ?
NSTimer
will consume the memory in backgroud
??