Вопрос

Is this syntax acceptable or is it not best practice?

@property ABAddressBookRef myAddressBook;
Это было полезно?

Решение

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.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top