As per my knowledge, I know that we use -fno-objc-arc flag to disable ARC for files that NOT support ARC in an ARC project.
And also we can use -fobjc-arc flag to enable ARC for files support ARC in a Non-ARC project.
But if I want to convert my ARC project(not particular file) to Non-ARC project, then how should I go ahead for the same?
Anyone please brief me about the same.
Thanks in Advance.
You have to insert manual memory management method calls in the appropriate places. In general, every
new,alloc,retain,copyandmutableCopycall shall be balanced by areleaseor anautorelease(the latter is mainly used in the case of return values), so, for example, the following ARC-enabled code:should be something like this under MRC:
More about memory management in the official documentation.