小编Mus*_*rka的帖子

如何在Xamarin ios中定位目录资源

我目前正在使用 Xamarin.iOS 并尝试从项目资源和项目目录中的目录中获取数据。但我在获取信息时无法获取数据。我什至可以看到整个目录没有复制到应用程序包本身中。

下面是我的代码。

string localHtmlUrl = Path.Combine(NSBundle.MainBundle.BundlePath,
                                   string.Format("NewFolder/webref/index.html")
                      );
Run Code Online (Sandbox Code Playgroud)

xamarin.ios ios xamarin xamarin-studio xamarin.forms

3
推荐指数
1
解决办法
4847
查看次数