I\'m confused with bridge
and bridge_transfer
, is this correct?
-(void)getData{
ABAddressBookRef addressBook = ABAddressBookCreate(
Luis Oscar I'm still working out my understanding of ARC, but I believe addressBook does need CFRelease. ARC is not managing addressBook. NSArray *allPeople is being managed by ARC via the __bridge_transfer cast hint and it is being created as a copy of the original. Without the CFRelease, addressBook will leak.