ios - AFNetworking JSONRequestOperation -



ios - AFNetworking JSONRequestOperation -

afjsonrequestoperation has successblock block when request succeeds, there no way set "authentication block" other on operation itself, if fails there no way send caller of afjsonrequestoperation. correct, or missing something?

i expect able tell caller whole operation failed because authorization failed.

actually method takes 2 block parameters success , failure

afjsonrequestoperation *operation = [afjsonrequestoperation jsonrequestoperationwithrequest:request success:successblock failure:failureblock];

so in failure block should able notify caller of failure

ios objective-c afnetworking

Comments

Popular posts from this blog

javascript - mongodb won't find my schema method in nested container -

Hibernate criteria by a list of natural ids -

ios - Lagging ScrollView with UIWebview inside -