【发布时间】:2012-09-23 16:36:09
【问题描述】:
我想在完成后删除我的两个 plist。我正在尝试使用这条线:
[[NSFileManager defaultManager] removeFileAtPath:path error:NULL];
这给了我错误:
“NSFileManager”没有可见的@interface 声明选择器“removeFileAtPath:error”
这是因为我没有使用 NSObject 吗?
在.h中
:UITableViewController<UIApplicationDelegate,UIAlertViewDelegate>
如何修复此错误或删除 plist 文件?
【问题讨论】:
-
你在哪里找到
removeFileAtPath??没有这样的方法。不在 iOS 上,不在 Mac 上。
标签: ios cocoa-touch plist nsfilemanager