Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/google-sheets/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Iphone 如何在后台使用nstimer_Iphone_Ios_Background_Nstimer_Core Location - Fatal编程技术网

Iphone 如何在后台使用nstimer

Iphone 如何在后台使用nstimer,iphone,ios,background,nstimer,core-location,Iphone,Ios,Background,Nstimer,Core Location,如何在后台使用NSTimer和ApplicationIdentinterBackground方法调用locationManager函数?为什么需要计时器?如果将代理设置为接收来自位置更新的回调,则不需要计时器。如果您需要主动位置跟踪,如果长时间运行,您将遭受巨大的电池消耗。当您进入后台切换到-monitorForSignificantLocationChanges时,您会感觉更好。将您的AppDelegate注册为Location Manager代表,然后在回拨中执行您需要执行的操作。您能帮我吗

如何在后台使用NSTimer和
ApplicationIdentinterBackground
方法调用
locationManager
函数?

为什么需要计时器?如果将代理设置为接收来自位置更新的回调,则不需要计时器。如果您需要主动位置跟踪,如果长时间运行,您将遭受巨大的电池消耗。当您进入后台切换到-monitorForSignificantLocationChanges时,您会感觉更好。将您的AppDelegate注册为Location Manager代表,然后在回拨中执行您需要执行的操作。

您能帮我吗?????