开发者

Releasing properties in Xcode 4.2 Beta?

I am in the habit of using "private properties" to hold objects and releasing them by setting them to nil in a method called by dealloc and viewDidUnload.

The Analyze function of Xcode 4.0.2 recognizes this and I don't get any warnings.

I just switched to Xcode 4.2 Beta because I want to add some IOS5 functionality, and all of a sudden I'm getting tons of memory leak warnings for all my allocs. It seems that the Analyze function of 4开发者_StackOverflow.2 does not recognize that these objects are actually released. It is impossible to find real leaks in this situation.

Is there anything that I can do?


xcode 4.2 introduces automatic reference counting, so as long as you write your code properly, you wont need to release or autorelease anymore, and you wont get memory leaks

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜