I'm dying inside. I have been working for literally days and I'm getting no where.
The following code works fine and the response string shows up in the debugging panel, but I have no idea how to step through the text/html that returns as a responseString (or responseData).
I'm begging for help. Can someone help me parse html please?
The following code works fine and the response string shows up in the debugging panel, but I have no idea how to step through the text/html that returns as a responseString (or responseData).
I'm begging for help. Can someone help me parse html please?
Code:
-(MKNetworkOperation*)jobSearchWithGrade:(NSString*)theGrade withSpecialty:(NSString*)theSpeciality withLocation:(NSString*)theLocation
{
MKNetworkOperation *op = [self operationWithPath:@"/doctor-jobs/anaesthetics-153/" params:nil httpMethod:@"GET"];
[op onCompletion:^(MKNetworkOperation *completedOperation) {
NSLog(@"Response: %@", [completedOperation responseString]);
// do processing here
}onError:^(NSError *error){
//NSLog(@"failure");
//errorBlock(error);
}];
[self enqueueOperation:op];
return op;
}