I have a block:
typedef id (^completionBlock)(id data, NSURLResponse *urlResponse, NSError *error);
And in a class method I try to populate this block with some code.
request.requestCompletedBlock = ^(id data, NSURLResponse *urlResponse, NSError *error){
...
return object;
};
requestCompletedBlock is of type completionBlock obviously.
I get the following error:
"Incompatible block pointer types assigning to 'completionBlock' (aka 'id (^)(_strong id, NSURLResponse *_strong, NSError *__strong)') from 'void *(^)(_strong id, NSURLResponse *_strong, NSError *__strong)'"
Obviously my syntax is wrong somewhere, but where?
Thanks very much,
Vb