If I mix C ++ code in Objective-C that manages memory for a C ++ object, does ARC process it?

If I create / select C ++ objects in a C object, so that Objective-C objects use pointers to C ++ objects, and the code moves, will ARC also manage C ++ objects and release / release them? What happens to a C ++ object whose pointer is in an Objetive C object that is not available? and suggested a candidate for deletion from memory

+5
source share
2 answers

According to Cocoa. Core competencies: object life cycle , you must free resources in the method dealloc. For a "raw" C ++ pointer, this means writing an expression delete.

ARC retain release, dealloc, .

+4

++ ++, ARC, . Objective-C ARC ( , ARC).

0

All Articles