【问题标题】:How to integrate location information into Twitter app?如何将位置信息集成到 Twitter 应用程序中?
【发布时间】:2011-02-09 03:10:19
【问题描述】:

我正在尝试使用 Matt Gemmell 的 MGTwitterEngine 让 Twitter iPhone 应用程序运行。我可以发布推文,但我不知道如何将位置数据附加到这些推文……有人知道吗?

【问题讨论】:

    标签: iphone objective-c twitter mgtwitterengine


    【解决方案1】:

    我从未使用过 MGTwitterEngine,但从查看代码来看,它应该像调用 sendUpdate:withLatitude:longitude: 一样简单。你试过什么?什么有效,什么无效?请更具体。

    【讨论】:

    【解决方案2】:

    到目前为止,无法使用 MGTwitterEngine 发布带有位置信息的推文。我目前正在努力使图书馆保持最新状态。您可以查看 github.com/freeatnet/MGTwitterEngine/tree/v2-dev 以获取更新。今天我将推送一个包含地理感知更新方法的提交。

    UPD。有关位置感知更新,请参阅 commit @http://github.com/freeatnet/MGTwitterEngine/commit/512be99cca9f5787192633455300dcd788c7830c

    方法签名:

    • (NSString *)sendUpdate:(NSString *)status;
    • (NSString *)sendUpdate:(NSString *)status fromLocationLat:(float)locLat locationLong:(float)locLong;
    • (NSString *)sendUpdate:(NSString *)status inReplyTo:(unsigned long long)updateID fromLocationLat:(float)locLat locationLong:(float)locLong;

    【讨论】:

    • 当前版本的MGTwitterEngine确实有sendUpdate:withLatitude:longitude:方法
    猜你喜欢
    • 2011-03-09
    • 2011-06-29
    • 2012-02-04
    • 2012-02-04
    • 1970-01-01
    • 1970-01-01
    • 2011-04-12
    • 2011-09-03
    相关资源
    最近更新 更多