Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在开发一个应用程序。在那我必须从目录中删除文件夹。我已经有了那个文件夹路径。
那么如何从目录中删除该文件夹?
您可以使用NSFileManager:
NSError *error=nil; BOOL isDeleted = [[NSFileManager defaulManager] removeItemAtPath:pathToYourFolder error:&error];