一行代码
[UIApplication.sharedApplication beginBackgroundTaskWithExpirationHandler:^{
[UIApplication.sharedApplication endBackgroundTask:UIBackgroundTaskInvalid];
}];
[UIApplication.sharedApplication beginBackgroundTaskWithExpirationHandler:^{
[UIApplication.sharedApplication endBackgroundTask:UIBackgroundTaskInvalid];
}];
本文标题:定时器退到后台继续执行
本文链接:https://www.haomeiwen.com/subject/pzbcfktx.html
网友评论