I am following the code set up in the example here:
What I am trying to do is query a database I have set up on Azure and check if there is already a fb_id with my current id (self.id). However, when trying to call ReadWithCompletion, I am getting the error: "Incompatible block pointer types sending..."
My Code can be found below:
MSQuery *query = [self.table queryWithPredicate: [NSPredicate predicateWithFormat:@"fb_id == %@", self.id]];
[query readWithCompletion:^(NSArray *results, NSInteger count, NSError *error) {
// Do stuff
}];
I don't see anything wrong with the syntax of the code as I am copying it straight from the online help tutorial provided by Microsoft. I have looked through all the threads on StackOverFlow with this type of error, and it is usually given with there is a return nil where a return should be. However, that is not the case here. Any help would be greatly appreciated.