Instance method '-copyPath:toPath:handler:' not found (return type defaults to 'id')

来源:互联网 发布:大数据的定义及特点 编辑:程序博客网 时间:2024/05/21 23:00

NSFileManager的copy,copyPath编译报错,竟然说没有这个方法。


没弄明白,但是看代码提示中,有一个copyItemAtPath,尝试了一下,功能一样。


        [filemgr copyItemAtPath:databasePath toPath:udsPath error:&udsError];        if (udsError!=nil) {            NSLog(@"%@", udsError);            NSLog(@"%@", [udsError userInfo]);        }


0 0
原创粉丝点击