我目前正在使用 Xamarin.iOS 并尝试从项目资源和项目目录中的目录中获取数据。但我在获取信息时无法获取数据。我什至可以看到整个目录没有复制到应用程序包本身中。
下面是我的代码。
string localHtmlUrl = Path.Combine(NSBundle.MainBundle.BundlePath,
string.Format("NewFolder/webref/index.html")
);
Run Code Online (Sandbox Code Playgroud)