its*_*ode 21 path objective-c
我正在尝试获取当前目录,但它给了我DEBUG文件夹的路径,我如何获取当前目录的路径.我使用以下代码.
NSFileManager *filemgr; NSString *currentpath; filemgr = [[NSFileManager alloc] init]; currentpath = [filemgr currentDirectoryPath];
mip*_*adi 25
currentDirectoryPath返回程序的当前工作目录.如果在调试模式下从Xcode启动它,程序的当前目录是 Debug目录.
currentDirectoryPath
归档时间:
15 年,9 月 前
查看次数:
20237 次
最近记录:
6 年,9 月 前