queue of AFNetworking requests with dispatch_group_t
问题 I want to send messages one by one in a queue. In other words I need to send new request after I get the response of the previous request. I use dispatch_group_t with AFNetworking But it does not work as I expected (I know there are other ways with operationQueue ). Here is my controller: - (void)viewWillAppear:(BOOL)animated { [super viewWillAppear:animated]; dispatch_async(queue, ^{ [self sentTest]; }); } - (void) sentTest{ dispatch_group_t group = dispatch_group_create(); NSLog(@"Start ...