NSAutoreleasePool is unavailable

前端 未结 5 1999
余生分开走
余生分开走 2020-12-05 23:13

I am following \"Programming in Objective-C\" 3rd edition and I am having problems with the first example.

I keep getting this error:

5条回答
  •  渐次进展
    2020-12-05 23:53

    Here is a link to Apple's transition guide to ARC.

    OK...check this out. Specific change to NSAutoreleasePool - this is how Xcode initializes itself when you create your first app. I don't know about you, but I love this idea!

    No worries if you are following along w/ Kochan's book. When starting your project, just uncheck the "Use ARC" box. Everything will work.

提交回复
热议问题