简体   繁体   English

在Xamarin Forms iOS应用中访问共享存储位置

[英]Access shared storage location in Xamarin Forms iOS app

Is it possible to access the storage location of using app groups in Xamarin forms application? 是否可以在Xamarin表单应用程序中访问使用应用程序组的存储位置? I have seen the reference of accessing the same from Xamarin iOS app. 我已经看到了从Xamarin iOS应用访问相同内容的参考。 Refer: https://developer.xamarin.com/guides/ios/watch/working-with/app-groups/ 请参阅: https : //developer.xamarin.com/guides/ios/watch/working-with/app-groups/

Could not find the option in Forms app. 在“表单”应用中找不到该选项。 The provision to enable app groups is not seen in Xamarain Forms application properties window. Xamarain表单应用程序属性窗口中未显示启用应用程序组的规定。

Any help on this. 任何帮助。

Working with App Groups is platform specific to iOS, so code-wise you will need to make use of the dependancy service: 使用应用程序组是特定于iOS的平台,因此从代码角度而言,您将需要使用依赖服务:

https://developer.xamarin.com/guides/xamarin-forms/dependency-service/ https://developer.xamarin.com/guides/xamarin-forms/dependency-service/

To enable App Groups you will need to open the Entitlements.plist file in your iOS Project rather than the shared / PCL project - again this is because it is a platform specific feature. 要启用应用程序组,您将需要在iOS项目中而不是共享的/ PCL项目中打开Entitlements.plist文件-同样,这是因为它是特定于平台的功能。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM