Domanda

Is this syntax acceptable or is it not best practice?

@property ABAddressBookRef myAddressBook;
È stato utile?

Soluzione

Yes this is completely ok and correct. It probably just feels strange because you generally don't need to make lots of properties with CF types. If it is not toll-free bridged, you should be sure to use CFRelease in the dealloc method of your class.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top