我在NSTimer
中实施了timer = [NSTimer scheduledTimerWithTimeInterval:20 target:self selector:@selector(methodName) userInfo:nil repeats:YES];
UIViewController
。
它没有任何问题,工作正常。但是,如果我点击iphone主页按钮applicationDidEnterBackground
将被呼叫。我将10 second
的应用程序最小化,而不是再次打开应用程序。因此methodName
将在10 second
及其工作之后调用backgroud
。我没有任何问题。我只是想知道,当timer
模式中的应用程序10 second
运行在backgroud上时???
我认为它的计时器正在后台工作,所以它在20 second
之后调用,否则在timer
之后调用。
当应用进入backgroud mode
时,NSTimer
会做什么?它保留了最后一次?
backgroud
将消耗{{1}}中的内存?