不兼容的块指针类型问题ios 9

时间:2015-09-29 09:29:10

标签: ios objective-c ios9

不兼容的块指针类型发送

(void) start
{
   //some code
    __block NSError *dependentError = nil;
    [self.dependencies enumerateObjectsUsingBlock:^(CustomBaseOperationLoader *operation, NSUInteger idx, BOOL *stop) {

   if (operation.operationError != nil) {
    dependentError = [operation.operationError copy];
    *stop = YES;
      }
   }
      ];

}
  

不兼容的块指针类型发送'void   (^)(CustomBaseOperationLoader * __ strong,NSUInteger,BOOL *)'到   'void(^ _Nonnull)类型的参数(NSOperation * _Nonnull __strong,   NSUInteger,BOOL * _Nonnull)'

0 个答案:

没有答案