开发者

Linkedin API response in IPhone

开发者 https://www.devze.com 2023-02-17 21:58 出处:网络
As API response of Linkedin API comes into function 开发者_开发技巧- (void)linkedInEngine:(RDLinkedInEngine *)engine requestSucceeded:(RDLinkedInConnectionID *)identifier withResults:(id)results {

As API response of Linkedin API comes into function

开发者_开发技巧- (void)linkedInEngine:(RDLinkedInEngine *)engine requestSucceeded:(RDLinkedInConnectionID *)identifier withResults:(id)results {

How we recognize that coming result is for which API

Amit Battan


I solved it in this way..

Every request return RDLinkedInConnectionID object
and in delegate method corresponding (RDLinkedInConnectionID *)identifier object here

I have taken a Dictionary for managing it

Code on request

[connectionDict setObject:@"afterlogin" forKey:[controller.engine profileForCurrentUser]];

Code on response in delegate method

if ( [[connectionDict objectForKey:identifier] isEqualToString:@"afterlogin"] ) {
    //Your Code
}
0

精彩评论

暂无评论...
验证码 换一张
取 消