I think the problem here is you're adding a property called completionBlock
to a subclass of NSOperation which already has methods defined for completionBlock
.
You could get rid of the property on your subclass, and just use NSOperation's -setCompletionBlock:
method.
Alternatively, you could rename your current property to something like SGCompletionBlock