I have a method that creates an ABRecordRef, sets its properties and returns the ref.
I'm encountering a crash when I use CFAutoRelease because I need to support iOS <7. how would I go about to properly releasing this?
-(ABRecordRef) myRecord{
ABRecordRef newRecord = ABPersonCreate();
//some setting here
return CFAutoRelease(newRecord); //how to release here?
}
CFAutoRelease. – Andreas Ley Oct 7 '13 at 16:13