1
0
Fork 0
mirror of https://github.com/Nioux/AideDeJeu.git synced 2025-10-31 23:45:39 +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

@ -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;
}