In AFNetworking 2.x for Xcode 5, I constantly get a warning for this method for this
AFHTTPRequestOperation *operation = [[[self class] allocWithZone:zone] initWithRequest:self.request];
self.request- these are incompatible pointer types that send 'NSURLRequest *'to the type parameter'MKLocalSearchRequest *'
#pragma mark - NSCopying
- (id)copyWithZone:(NSZone *)zone {
AFHTTPRequestOperation *operation = [[[self class] allocWithZone:zone] initWithRequest:self.request];
operation.responseSerializer = [self.responseSerializer copyWithZone:zone];
operation.completionQueue = self.completionQueue;
operation.completionGroup = self.completionGroup;
return operation;
}
Someone will get this problem (warning).
source
share