How-to combine AFNetworking 2.0 with reactive cocoa to chain a queue of requests together?
问题 I have several Requests that depend on each other and must me called in sequence? Can somebody give me an example using AFNetworking and reactive cocoa? Example: LoginRequest (return transactionId) UpdateRequest post data with transactionId UploadRequest jpeg with transactionId EndRequest with transactionId 回答1: The method names are clearly made-up but should give you a sense of the form of the code you'd write: [[self executeLoginRequest] flattenMap:^(id transactionId) { return [[[self