i am having a problem in type conversion in ARC environment.if anyone would be kind enough to address it as well:
when i used this line of code:
OSStatus status = SecItemCopyMatching((CFDictionaryRef) CFBridgingRetain(attributeQuery), (CFTypeRef*)&attributeResult);
then i am having error :
cast of an indirect pointer to an objective C pointer to 'CFTypeRef *' is disallowed with ARC.
Please suggest me any way to ressolve this..
Thanks in advance..
The problem is you are using a NSDictionary for attributeResult instead of a CFDictionary. Try this and it should work (I’m using the same code):