<pre>
//需要删除文件的物理地址
NSString *path = dic[@"path"];
NSFileManager *fileManager = [NSFileManager defaultManager];
BOOL isDelete = [fileManager removeItemAtPath:path error:nil];
if (isDelete) {
[XCHUDTool showOKHud:@"删除成功" delay:1.0f];
}else{
[XCHUDTool showNOHud:@"删除失败" delay:1.0f];
}
</pre>
网友评论