如何将位置信息集成到 Twitter 应用程序中?
我正在尝试使用 Matt Gemmell 的 MGTwitterEngine 来运行 Twitter iPhone 应用程序。我可以发布推文,但我不知道如何将位置数据附加到这些推文......有人知道吗?
I'm trying to get a Twitter iPhone app working using Matt Gemmell's MGTwitterEngine. I can post tweets OK, but I can't work out how to attach location data to those tweets... anyone have any idea?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我从未使用过 MGTwitterEngine,但从代码来看,它应该像调用
sendUpdate:withLatitude:longitude:
一样简单。你尝试了什么?什么有效,什么无效?请说得更具体一些。I've never used MGTwitterEngine but from looking at the code, it should be as simple as calling
sendUpdate:withLatitude:longitude:
. What have you tried? What did and what did not work? Please be more specific.目前还无法使用 MGTwitterEngine 发布带有位置信息的推文。我目前正在努力使图书馆保持最新状态。您可以检查 github.com/freeatnet/MGTwitterEngine/tree/v2-dev 是否有更新。今天我将推送包含地理感知更新方法的提交。
UPD。请参阅提交@ http://github.com/freeatnet/MGTwitterEngine/commit/512be99cca9f5787192633455300dcd788c78 30c用于位置感知更新。
方法签名:
There is no way to do post tweets with location information with MGTwitterEngine as of now. I am currently working on bringing the library up to date. You can check github.com/freeatnet/MGTwitterEngine/tree/v2-dev for updates. I'll be pushing a commit containing a method for geo-aware updates today.
UPD. See commit @ http://github.com/freeatnet/MGTwitterEngine/commit/512be99cca9f5787192633455300dcd788c7830c for location-aware updates.
Method signatures: