关于下面代码段的说法错误的是( ) NSArray *paths=NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); NSString *dp=[paths objectAtIndex:0]; NSString *filepath=[dp stringByAppendingPathComponent:@"xuesheng.sqlite"]; NSLog (@"filepath=%@",filepath); db=[FMDatabase databaseWithPath:filepath]; if (![db open]) { NSLog(@"create or open database failed!"); return; }
A、在当前APP对应沙盒中创建嵌入式数据库
B、获取APP沙盒中Library系统文件夹的路径
C、open命令为打开或新建指定的数据库
D、在控制台中输出目标数据库的完整路径