class NSfileManager 的方法 release 有什么作用?

What does the method release from the class NSfileManager do?

下面执行从对象文件管理器释放的方法。这就是我目前所知道的。我尝试搜索方法发布的含义,但没有找到。

我在 Whosebug 上搜索过:

我在 Google 上搜索:

我也尝试在 developer.apple.com 上找到方法。我看到很多关于NSfileManager class的信息,但我没有看到它的释放方法。我是 Objective-C.

的新手
[fileManager release];

继承自NSObject。它减少了一个对象的引用计数。只有在禁用 Automatic Reference Counting 时才能使用它。但它应该始终启用。所以启用 ARC 并忘记 release

并阅读:Cocoa Memory Management

还有这个:Transitioning to ARC

您可能会看到这样的错误,我相信如果您使用的是 Xcode v.5.0 或更高版本。