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
Post a Comment