0

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

4

2 回答 2

2

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

于 2010-04-17T12:01:03.240 回答
1

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

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

方法签名:

  • (NSString *)sendUpdate:(NSString *)状态;
  • (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;
于 2010-04-17T22:25:17.920 回答