我在 ARC 环境中遇到类型转换问题。如果有人也愿意解决它:
当我使用这行代码时:
NSData *resultData = nil;
NSMutableDictionary *passwordQuery = [query mutableCopy];
[passwordQuery setObject: (id) kCFBooleanTrue forKey: (__bridge id) kSecReturnData];
status = SecItemCopyMatching((__bridge CFDictionaryRef) passwordQuery, (CFTypeRef *) &resultData);
然后我收到一个错误:
Cast of an indirect pointer to an Objective C pointer to 'CFTypeRef*'(aka 'const void **')is disallowed with ARC.
请建议我任何解决此问题的方法..
提前致谢..