Under automatic reference counting, why are retain, release, and dealloc not allowed?

前端 未结 4 1620
忘掉有多难
忘掉有多难 2020-11-28 10:08

When trying to use -retain, -release, and -dealloc while building my application using automatic reference counting in Xcode 4.2, I ge

4条回答
  •  难免孤独
    2020-11-28 10:59

    As I have pointed out in my answer on Xcode ARC, you can compile specific source files as non-ARC. Dave DeLong's answer is a bit off. It doesn't include the fact that you can instruct the compiler to compile source as non-ARC in an ARC-enabled project (as explained here).

提交回复
热议问题