objective c - Does ASINetworkQueue support multiple requestDidFinishSelectors? -
In a view controller, I have several ways with various ASIFormDataRequests, which have different Finnish selectors, hence the method A - Gt; FinnishShincter (Affinibet), Methib - & gt; FinanSeltter (Biffinbed :), and Method C - Finisher Shikkitter (Cfnijd)
I have a method that handles all requests as shown below:
- (zero) sendRequest: Param: (NSDictionary *) parameter and selector with URL: * NSString * selector {NSString * jsonString = [params yajl_JSONString]; ASIFormDataRequest * Request = [ASIFormDataRequest requestWithURL: url]; [Request Setpost Value: jsonString forKey: @ "json"]; [Set time timeset: 15]; [[Self NetworkNo] Set Deliaget: Self]; [[Self NetworkKUUUT] SetterQuestDeadfirstSecents: NSSSilterFrameString (selector)]; [[SELF NetworkQueUUT] CeterusDefiffFileTalker: @Selector (ASIRFestFile :)]; [[Self Network Que] Adding Operation: Request]; [[Go to own network]]; } I saw that when I changed the method A-> The request for B-> C and B sent, then before A, then Biffinit: will be said twice, first data with B with data, then data corresponding to method A Does ASINWorksquare handle 1 finish only at one time? Do I have to separate the network code for each method?
thanks
requests removed from ASINetworkQueue Activates setCompletionBlock. The blocks that were completed before the queue selector were executed for the request. For this tutorial, refer to this blog:
Comments
Post a Comment