1
0
Fork 0
mirror of https://github.com/Nioux/AideDeJeu.git synced 2025-10-30 15:06:06 +00:00

Ajustements iOS

This commit is contained in:
Yan Maniez 2019-05-12 14:00:04 +02:00
parent cf275c0493
commit cfdea61926
2 changed files with 3 additions and 1 deletions

View file

@ -23,6 +23,8 @@ namespace AideDeJeu.iOS
//
public override bool FinishedLaunching(UIApplication app, NSDictionary options)
{
Xamarin.Essentials.ExperimentalFeatures.Enable(Xamarin.Essentials.ExperimentalFeatures.ShareFileRequest);
Rg.Plugins.Popup.Popup.Init();
global::Xamarin.Forms.Forms.Init();

View file

@ -53,7 +53,7 @@ namespace AideDeJeu.iOS
void LoadFile(string fileName)
{
string filePath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), string.Format("pdf/{0}", WebUtility.UrlEncode(fileName)));
string filePath = Path.Combine(Xamarin.Essentials.FileSystem.CacheDirectory, string.Format("pdf/{0}", WebUtility.UrlEncode(fileName)));
Control.LoadRequest(new NSUrlRequest(new NSUrl(filePath, false)));
Control.ScalesPageToFit = true;
}