oscarimonbox
4/17/2019 - 8:47 AM

Comprobar respuesta NSData a string JSON

                NSHTTPURLResponse* errResponse = (NSHTTPURLResponse*)error.userInfo[AFNetworkingOperationFailingURLResponseErrorKey];
                NSData* response = error.userInfo[AFNetworkingOperationFailingURLResponseDataErrorKey];
                if(errResponse){
                    
                    NSError* error;
                    NSDictionary* message = [NSJSONSerialization JSONObjectWithData:response
                                                                            options:kNilOptions
                                                                              error:&error];