This is about ARC in IOS 5.
Suppose it is ARC enabled and I still use retain release etc in code , are there any risks ?? or will it be handled automatically ??
I know that ARC can be avoided for specific files. But in this case I have not done anything to remove ARC on this file. This file is now a mixup ( with release for some allocations and without release for some allocations ).
What are the risks expected in such an environment?
Thanks for any help !
–mia
You cannot use
retainorreleasein ARC enabled code. It’s simply not allowed – the compiler will error out. If you are not explicitly indicating to the compiler that a file should not be compiled with ARC enabled (using the-fno-objc-arcflag) and you callreleaseyour code won’t compile.Hope that helps!