iPhone 好友位置应用
如果我们要开发一个记录好友位置的应用程序,SDK提供什么样的API?
更新:
CoreLocation 获取运行应用程序时的设备位置。但是,如果您有朋友的电话号码,如何获取他们的位置数据。
有谁知道使用 iphone sdk 获取朋友的位置数据
What kind of api does SDK provide if we are to develop an app which keeps tracks of friends location?
Update:
CoreLocation gets the device location with the app running. But how to get the friends location data if you have their phone number.
Does anyone have idea to get the location data of friends using iphone sdk
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我猜你的意思是像
Core Location
框架之类的东西?这仍然只能在应用程序运行时跟踪设备位置。您必须将朋友的位置数据传递到服务器并从那里获取它,以便能够在任何设备上跟踪他们。http://developer.apple.com/iphone/库/文档/CoreLocation/Reference/CoreLocation_Framework/index.html
I'm guessing you mean something like
Core Location
framework? This still would only be able to track the device location with the app running. You would have to pass your friends location data to a server and fetch it from there to be able to track them on any device.http://developer.apple.com/iphone/library/documentation/CoreLocation/Reference/CoreLocation_Framework/index.html
如果 Apple 让任何旧应用程序与另一部 iPhone 进行通信以确定该 iPhone 的位置,我会感到惊讶。您可能需要维护一个不时与您的应用程序同步的位置数据库。使用该应用程序的任何人都可以访问其朋友的位置。
I would be surprised if Apple let any old app communicate with another iPhone to determine that iPhone's location. You'll probably have to maintain a database of locations that syncs with your app from time to time. Anyone using that app will then be able to access their friends' locations.