I'm trying to use a C++ member in an Objective-C++ class. Something like this:
class CPP;开发者_StackOverflow社区
@interface ObjCPP{
CPP* cppMember;
}
@end
Without ARC, I'm able to manager cppMember with subclassing init and dealloc method. But under ARC I can't do this, because when subclassing dealloc I can't write this:
[super dealloc];
Any idea for this?
Thanks!
Under ARC, it's fine to (and you must) just leave out the [super dealloc] in a -dealloc implementation. See also this question.
加载中,请稍侯......
精彩评论