ARC, worth it or not?

前端 未结 7 1526
没有蜡笔的小新
没有蜡笔的小新 2021-02-05 09:53

When I moved to Objective C (iOS) from C++ (and little Java) I had hard time understanding memory management in iOS. But now all this seems natural and I know retain, autoreleas

7条回答
  •  情歌与酒
    2021-02-05 10:18

    3) You should re-test your apps, but in my experience it will pretty much just work. Look at all the compiler warnings very carefully though!!!

    4) Non obvious advantages: it's just really faster to code when you do not have to think about memory management. Perhaps that is obvious but the amount it helps still surprised me.

    5) Disadvantages: Really the only disadvantage is having to turn off ARC for some third party libraries.

    ARC has been so useful I simply will not code without it any longer. There's no reason to have to deal with all of that any more and it works well enough in practice.

提交回复
热议问题