0
我是新來的無功可可,我想知道,如果有人可以幫我解決這個問題:RACSignal:處理不兼容的塊指針類型
下面的代碼片段造成我的麻煩:
[[[self getFormItemAttachmentHeaders:listName
topListItemID:form.topListItemID
form:form
] map:^id(NSMutableArray* value) {
NSArray* attachmentHeaders = [value copy];
return attachmentHeaders;
}
] subscribeNext:^(NSArray* attachmentHeaders) {
return [self uploadFormItemAttachments:pendingAttachments
attachmentHeaders:attachmentHeaders
form:form];
}
];
RACSignal* batchSignal = [RACSignal createSignal:^RACDisposable *(id<RACSubscriber> subscriber) {
[pendingAttachments enumerateObjectsUsingBlock:^(SEFSManagedAttachment* pendingImage, NSUInteger idx, BOOL *stop) {
下面的代碼行::該代碼是從在相同的方法中的RACsignal對象定義爲這樣的稱爲
return [self uploadFormItemAttachments:pendingAttachments
attachmentHeaders:attachmentHeaders
form:form];
生成錯誤:
Incompatible block pointer types sending 'RACSignal *(^)(NSArray *__strong)' to parameter of type 'void (^)(__strong id)'