iPhone编程objective-c:在背景问题中跟踪用户位置
我读到我们可以在后台跟踪用户位置。 我已经放入 plist backgroundmodes array = location. 我想知道这是否只适用于 iphone 4 和 3gs? 另外,当用户在后台更改位置时,是否会触发 DidFindPlacemark 方法?
最后是否有一个带有“代码”的教程或这个东西的示例?
谢谢
i have read that we can track user location in background.
I have put in plist backgroundmodes array = location.
I want to know if this only work with iphone 4 and 3gs?
Also , when the user change location while in background, does it triggle the DidFindPlacemark method?
finally is there a tutorial with "CODE" somewhere or a sample for this thing?
thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为您正在寻找 CLLocationManager,它是 GPS 实现。它没有 UI 并且在后台运行,但您不从 PList 调用它,而是实现一个类。找到代码的“LocateMe”示例项目。这适用于 iOS 3.1.3 上的 iPhone 3,这是我最早使用过的。
I think you're looking for CLLocationManager, which is the GPS implementation. It has no UI and runs in the background, but you don't invoke it from the PList, you implement a class. Find the "LocateMe" example project for the code. This works in iPhone 3 on iOS 3.1.3, that's as far back as I have used it.