문제

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