MGTwitterEngine和IOS 5.0.1不工作,适用于IOS 4.x.

时间:2012-01-11 16:44:37

标签: ios twitter ios5 mgtwitterengine

我一直在使用MGTwitterEngine,它在IOS 4.x上工作正常,但在IOS 5.x上不起作用我已经下载了最新版本,mattgemmell-MGTwitterEngine-e40658f,并将其与同一问题集成在一起。我得到以下内容,我只是开始研究,但这段代码在IOS 4.x上运行良好

以下是该行,但在IOS 4.x上工作正常,可以进行某种折旧

[delegate parsedObject:(NSDictionary *)dictionary forRequest:identifier ofResponseType:responseType];

Instance method '-parsedObject:forRequest:ofResponseType:' not found (return type defaults to 'id')

委托是

的类型
__weak NSObject <MGTwitterParserDelegate> *delegate; // weak ref

并且处于常规

- (void)_parsedObject:(NSDictionary *)dictionary
{
[parsedObjects addObject:dictionary];
if (deliveryOptions & MGTwitterEngineDeliveryIndividualResultsOption)
    if ([self _isValidDelegateForSelector:@selector(parsedObject:forRequest:ofResponseType:)])
        [delegate parsedObject:(NSDictionary *)dictionary forRequest:identifier ofResponseType:responseType];
}

在例程中设置中断后,看起来它没有被调用.....

所以,我们回到第一个问题,任何人都解决了这个Twitter引擎无法在IOS 5.x上运行的问题

1 个答案:

答案 0 :(得分:2)

iOS5已经拥有自己的Twitter框架。您需要使用它 - Twitter Framework Reference