I have the code (stripped down):
CFDictionaryRef *currentListingRef;
//declare currentListingRef here
NSDictionary *currentListing;
currentListing = (NSDictionary *) currentListingRef;
And then I get the error:
Cast of a non-Objective-C pointer type 'CFDictionaryRef *' (aka 'const
struct __CFDictionary **') to 'NSDictionary *' is disallowed with ARC
What am I doing wrong? How do I convert from a CFDictionaryRef
to an NSDictionary
?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…