ios - How to properly combine ARC code with NON ARC code? -
I know there are questions about it and I have read them. I need XML
parser in iOS
. I need to use the GDataXML
parser. I disable the ARC for this, but in the example also, maintain
and release
like non-ARC There are commands.
I will remove them, but can it lead some leaks to leak? I do not think so, but I'm not sure.
No, it can not lead to memory leaks. For non-ARC files, just use -fno-objc-arc .
"Automated reference counting implements automated memory management for purpose-C objects and blocks, programmers are explicitly inserted and released for free. This does not provide a cycle collector Users should explicitly manage the lifetime of their object manually or to break weak or insecure references.
A Clearly the compiler flag -fobjc-arc. This can also be clearly disabled with the compiler flag -fno-objc-arc, the last of these two flags visible on the skeleton line "win". "
See for more information.
Comments
Post a Comment