//获取沙盒目录下的document路径,编码资源文件的保存路径
NSArray *directoryPaths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
NSString *documentDirectory = [directoryPaths objectAtIndex:0];
char golableDocumentPath[1000]; //C++编码共享的存储路径
char * tempString = (char *)[documentDirectory cStringUsingEncoding:NSUTF8StringEncoding];
stpcpy(golableDocumentPath, tempString);
文章标题
最新推荐文章于 2023-10-19 15:03:50 发布