+ Start a Discussion
victor92victor92 

2 RESTREQUESTS

I have sent 2 querys in the same viewController. So I will be getting to the "- (void)request:(SFRestRequest *)request didLoadResponse:(id)jsonResponse" twice. So how can I distinguish 2 requests ??

jhersh1jhersh1

I'd highly recommend you check out the new block methods in the SDK, which solves this problem very neatly :)

mobillemobille

Hi

 

TAke one BOOL variable set it first it NO.

 

when you calling 1st query set YES..in your didrecieve response check whether if it YES .IF it is YES take the respone in ur dictionary and assign NO to BOOL.after second query in did receive respnse check for NO if it is no handle respnse.