2
使用Matt Gemmell的MGTwitterEngine,我將如何知道用戶(即我以登錄身份)是否啓用了地理標記功能? 根據Twitter API,有一個'geo_enabled'布爾標誌,但我不能解決如何使用MGTwitterEngine查詢它。 http://apiwiki.twitter.com/Geotagging-API-Best-Practice如何使用Twitter/MGTwitterEngine發現是否啓用地理標記?
不知道如何做到這一點,我想: NSString * theName = [_engine username]; NSLog(@「Name%@」,theName); NSString * theInfo = [_engine getUserInformationFor:theName]; NSLog(@「Info%@」,theInfo); ..但信息只是返回一個隨機字符串,如A2B6D0D5-A579-4122-831A-B3355242B684。 – cannyboy 2010-04-18 13:40:17
您需要在您的引擎委託中實現userInfoReceived:forRequest:。一旦getUserInformationFor:request的結果準備就緒並被解析,引擎就會調用userInfoReceived:forRequest:NSDictionary-i的NSArray的第一個參數與用戶信息和NSString,其中包含與getUserInformationFor的返回值相同的ID。 – freeatnet 2010-04-18 19:06:32