举例详解iOS开发过程中的沙盒机制与文件

2020-01-14 16:18:42刘景俊

    NSArray *array = [[NSArray alloc] initWithObjects:@"hello world",@"hello world1", @"hello world2",nil];  
    [fileManager createFileAtPath:fileName contents:array attributes:nil];  
13、删除文件
复制代码
[fileManager removeItemAtPath:fileName error:nil]; 

注:相关教程知识阅读请移步到IOS开发频道。