// delete document directory file
NSFileManager *filemgr;
NSString *currentpath;
NSString *documentsDirectory2 = [NSString stringWithFormat:@"%@/library",[DocumentDirectory libraryDirectoryPath]];
currentpath = [documentsDirectory2 stringByAppendingPathComponent:@"settings.plist"];
filemgr = [NSFileManager defaultManager];
NSError *error = nil;
[filemgr removeItemAtPath: currentpath error:&error];
NSFileManager *filemgr;
NSString *currentpath;
NSString *documentsDirectory2 = [NSString stringWithFormat:@"%@/library",[DocumentDirectory libraryDirectoryPath]];
currentpath = [documentsDirectory2 stringByAppendingPathComponent:@"settings.plist"];
filemgr = [NSFileManager defaultManager];
NSError *error = nil;
[filemgr removeItemAtPath: currentpath error:&error];
No comments:
Post a Comment