2015-02-09 118 views

回答

2

每个iOS应用程序运行在沙箱和(至少在设备上)无法访问其他应用程序的文件。

因此,在iOS上,Environment.GetFolderPath(Environment.SpecialFolder.Personal)为您提供的是可以存储应用程序的用户数据的位置。

如果你从iOS(没有沙箱)运行这个外部,那么你会得到一个共享的位置(每个操作系统不同)。

+0

谢谢你解释得很好 – 2015-02-11 10:55:08

+0

https://developer.xamarin.com/guides/ios/application_fundamentals/working_with_the_file_system/ – 2016-09-23 09:38:48