在 RestKit 0.10.x 我可以做这样的事情来添加 SSL 证书:
SecCertificateRef cert = SecCertificateCreateWithData(NULL, (__bridge CFDataRef)certificate);
if( cert != NULL ) {
[[RKClient sharedClient] addRootCertificate:cert];
CFRelease(cert);
[self trustCert:certificate];
return YES;
}
如何在 RestKit 0.20.3 中解决它?