Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/objective-c/24.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios 无需越狱即可访问应用程序文件夹_Ios_Objective C_Nsarray_Sandbox_Nsfilemanager - Fatal编程技术网

Ios 无需越狱即可访问应用程序文件夹

Ios 无需越狱即可访问应用程序文件夹,ios,objective-c,nsarray,sandbox,nsfilemanager,Ios,Objective C,Nsarray,Sandbox,Nsfilemanager,我正在尝试访问applications文件夹,该文件夹允许在不越狱的情况下进行读取访问,但我得到了一个空数组 NSArray *appFolderContents=[[NSFileManager defaultManager] directoryContentsAtPath:@"/var/mobile/Applications"]; 你可以像这样访问你的应用程序目录 NSString *appFolderPath = [[NSBu

我正在尝试访问applications文件夹,该文件夹允许在不越狱的情况下进行读取访问,但我得到了一个空数组

NSArray *appFolderContents=[[NSFileManager defaultManager] 
                            directoryContentsAtPath:@"/var/mobile/Applications"];

你可以像这样访问你的应用程序目录

   NSString *appFolderPath = [[NSBundle mainBundle] resourcePath];
   NSFileManager *fileManager = [NSFileManager defaultManager];  
   NSLog(@"App Directory is: %@", appFolderPath);
   NSLog(@"Directory Contents:\n%@", [fileManager directoryContentsAtPath: appFolderPath]);
请注意,您在根文件夹中拥有只读权限,并在应用程序的
文件夹中写入和读取
文档


您无法访问应用程序包之外的任何文件夹。

我想获取其他应用程序目录,像iFunbox这样的应用程序如何能够访问应用程序文件夹?iFunbox
究竟可以访问哪个文件夹?我唯一能看到的就是访问照片文件夹。这就是您想要的吗?在iFunbox中,我可以看到“用户应用程序”,其中包含已安装应用程序的列表。此iFunbox似乎没有应用程序的列表: